function cron_debug_menu in Cron Debug 7
Implements hook_menu().
File
- ./
cron_debug.module, line 63 - Cron debugging for administrators.
Code
function cron_debug_menu() {
$items = array();
// Provide a default menu item, since core does not.
$items['admin/config/system/cron/settings'] = array(
'title' => 'Cron',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/system/cron/debug'] = array(
'title' => 'Debug cron',
'description' => 'Run and time selected cron hooks.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cron_debug_form',
),
'type' => MENU_LOCAL_TASK | MENU_NORMAL_ITEM,
'access arguments' => array(
'run cron debug',
),
);
$items['admin/config/system/cron/debug/run/%'] = array(
'title' => 'Cron Debug run of individual hooks',
'description' => 'Run specific cron hook individually.',
'page callback' => 'cron_debug_run',
'page arguments' => array(
6,
),
'type' => MENU_CALLBACK,
'access arguments' => array(
'run cron debug',
),
);
return $items;
}