function field_cron

Same name and namespace in other branches
  1. 9 core/modules/field/field.module \field_cron()
  2. 8.9.x core/modules/field/field.module \field_cron()
  3. 10 core/modules/field/field.module \field_cron()

Implements hook_cron().

Related topics

File

modules/field/field.module, line 351

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 = variable_get('field_purge_batch_size', 10);
  field_purge_batch($limit);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.