function rules_scheduler_menu
Implements hook_menu().
File
-
rules_scheduler/
rules_scheduler.module, line 99
Code
function rules_scheduler_menu() {
$items = array();
$items[RULES_SCHEDULER_PATH] = array(
'title' => 'Schedule',
'type' => MENU_LOCAL_TASK,
'page callback' => 'rules_scheduler_schedule_page',
'access arguments' => array(
'administer rules',
),
'file' => 'rules_scheduler.admin.inc',
);
$items[RULES_SCHEDULER_PATH . '/%rules_scheduler_task/delete'] = array(
'title' => 'Delete a scheduled task',
'type' => MENU_CALLBACK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'rules_scheduler_delete_task',
5,
),
'access arguments' => array(
'administer rules',
),
'file' => 'rules_scheduler.admin.inc',
);
return $items;
}