function field_cron

Implements hook_cron().

Related topics

File

drupal/core/modules/field/field.module, line 321
Attach custom data fields to Drupal entities.

Code

function field_cron() {

  // Refresh the 'active' status of fields.
  field_sync_field_status();

  // Do a pass of purging on deleted Field API data, if any exists.
  $limit = config('field.settings')
    ->get('purge_batch_size');
  field_purge_batch($limit);
}