1 field.module field_flush_caches()

Implements hook_flush_caches().

Related topics

File

core/modules/field/field.module, line 379
Attach custom data fields to Backdrop entities.

Code

function field_flush_caches() {
  // Refresh the 'active' status of fields. We only do this if not in
  // maintenance mode to prevent it running during update.php, where the full
  // API of field module may not be available.
  if (!defined('MAINTENANCE_MODE')) {
    field_sync_field_status();
  }

  // Request a flush of our cache table.
  return array('field');
}