function ultimate_cron_menu_alter in Ultimate Cron 6
Same name and namespace in other branches
- 8 ultimate_cron.module \ultimate_cron_menu_alter()
- 7.2 ultimate_cron.module \ultimate_cron_menu_alter()
- 7 ultimate_cron.module \ultimate_cron_menu_alter()
Implementation of hook_menu_alter().
Steal the run-cron, so when you "run cron manually" from the status-reports page the ultimate_cron cron handler is run.
File
- ./
ultimate_cron.module, line 653 - @todo Add filter on overview page. @todo Add log view (with graph). @todo Make proper markup for overview page. @todo Refactor drush stuff, too many intimate relations with Background Process @todo Refactor Cron % offset stuff. Too mixed up and…
Code
function ultimate_cron_menu_alter(&$callbacks) {
if (_ultimate_cron_incompatible_modules()) {
return;
}
// Steal "run-cron" from system!!!
$callbacks['admin/reports/status/run-cron']['page callback'] = 'ultimate_cron_run_cron';
$callbacks['admin/reports/status/run-cron']['page arguments'] = array(
TRUE,
);
$callbacks['admin/reports/status/run-cron']['file'] = 'ultimate_cron.admin.inc';
$callbacks['admin/reports/status/run-cron']['module'] = 'ultimate_cron';
}