Implements hook_cron().
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);
}