function scheduler_menu in Scheduler 5
Same name and namespace in other branches
- 6 scheduler.module \scheduler_menu()
- 7 scheduler.module \scheduler_menu()
Implementation of hook_menu().
File
- ./
scheduler.module, line 24
Code
function scheduler_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'scheduler/cron',
'type' => MENU_CALLBACK,
'callback' => '_scheduler_run_cron',
'access' => TRUE,
);
$items[] = array(
'path' => 'scheduler/timecheck',
'type' => MENU_CALLBACK,
'callback' => '_scheduler_timecheck',
'access' => user_access('schedule (un)publishing of nodes'),
);
}
$items[] = array(
'path' => 'admin/settings/scheduler',
'title' => t('Scheduler module settings'),
'callback' => 'drupal_get_form',
'callback arguments' => 'scheduler_admin',
'access' => user_access('administer scheduler'),
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'admin/content/node/scheduler',
'type' => MENU_LOCAL_TASK,
'title' => t('Scheduled'),
'callback' => 'scheduler_list',
'access' => user_access('administer nodes') && user_access('schedule (un)publishing of nodes'),
'weight' => 10,
);
return $items;
}