You are here

function rules_scheduler_menu in Rules 6

Same name and namespace in other branches
  1. 7.2 rules_scheduler/rules_scheduler.module \rules_scheduler_menu()

Implementation of hook_menu().

File

rules_scheduler/rules_scheduler.module, line 37
Rules scheduler module.

Code

function rules_scheduler_menu() {
  $items = array();
  $items[RULES_SCHEDULER_PATH] = array(
    'title' => 'Scheduling',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'rules_scheduler_scheduling',
    'access arguments' => array(
      'administer rules',
    ),
    'file' => 'rules_scheduler.admin.inc',
  );
  $items[RULES_SCHEDULER_PATH . '/%rules_scheduler_tid/delete'] = array(
    'title' => 'Delete a scheduled task',
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'rules_scheduler_delete_task',
      4,
    ),
    'access arguments' => array(
      'administer rules',
    ),
    'load arguments' => array(
      4,
    ),
    'file' => 'rules_scheduler.admin.inc',
  );
  return $items;
}