You are here

function ultimate_cron_cron_alter in Ultimate Cron 7.2

Same name and namespace in other branches
  1. 8 ultimate_cron.module \ultimate_cron_cron_alter()
  2. 6 ultimate_cron.module \ultimate_cron_cron_alter()
  3. 7 ultimate_cron.module \ultimate_cron_cron_alter()

Implements hook_cron_alter().

Add better description to core modules.

File

./ultimate_cron.cron.inc, line 45
Cron hook implementations for Ultimate Cron.

Code

function ultimate_cron_cron_alter(&$hooks) {
  $update['dblog_cron']['title'] = t('Remove expired log messages and flood control events');
  $update['field_cron']['title'] = t('Purges deleted Field API data');
  $update['filter_cron']['title'] = t('Expire outdated filter cache entries');
  $update['node_cron']['title'] = t('Mark old nodes as read');
  $update['search_cron']['title'] = t('Update indexes');
  $update['system_cron']['title'] = t('Cleanup (caches, batch, flood, temp-files, etc.)');
  $update['aggregator_cron']['title'] = t('Refresh feeds');
  $update['openid_cron']['title'] = t('Remove expired nonces from the database');
  $update['ping_cron']['title'] = t('Notify remote sites');
  $update['poll_cron']['title'] = t('Close expired polls');
  $update['statistics_cron']['title'] = t('Reset counts and clean up');
  $update['trigger_cron']['title'] = t('Run actions for cron triggers');
  $update['tracker_cron']['title'] = t('Update tracker index');
  $update['update_cron']['title'] = t('Check system for updates');
  $update['dblog_cron']['configure'] = 'admin/config/development/logging';
  $update['ctools_cron']['title'] = t('Clean up old caches');
  $update['system_cron']['scheduler']['crontab'] = array(
    'rules' => array(
      '0+@ */3 * * *',
    ),
  );
  $update['system_cron']['scheduler']['simple'] = array(
    'rules' => array(
      '0+@ */3 * * *',
    ),
  );
  foreach ($update as $name => $data) {
    if (isset($hooks[$name])) {
      $hooks[$name] = array_replace_recursive($hooks[$name], $data);
    }
  }
}