You are here

function ack_menu_menu in Access Control Kit 7

Implements hook_menu().

File

ack_menu/ack_menu.module, line 62
The ACK menu module.

Code

function ack_menu_menu() {
  $items['ack_menu'] = array(
    'title' => 'Manage menu links',
    'description' => 'Add, edit, and rearrange links for menu trees that you are permitted to manage.',
    'page callback' => 'ack_menu_overview_page',
    'access callback' => 'ack_menu_access',
    'menu_name' => 'navigation',
    'file' => 'ack_menu.pages.inc',
  );
  $items['ack_menu/list'] = array(
    'title' => 'List manageable links',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['ack_menu/manage/%access_scheme_machine_name/%'] = array(
    'title' => 'Manage realm menu links',
    'title callback' => 'ack_menu_overview_title',
    'title arguments' => array(
      2,
      3,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ack_menu_overview_form',
      2,
      3,
    ),
    'access callback' => 'ack_menu_realm_access',
    'access arguments' => array(
      2,
      3,
    ),
    'file' => 'ack_menu.pages.inc',
  );
  $items['ack_menu/manage/%access_scheme_machine_name/%/list'] = array(
    'title' => 'List links',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['ack_menu/manage/%access_scheme_machine_name/%/add'] = array(
    'title' => 'Add realm menu link',
    'title callback' => 'ack_menu_link_add_title',
    'title arguments' => array(
      2,
      3,
    ),
    'page callback' => 'ack_menu_link_add',
    'page arguments' => array(
      2,
      3,
    ),
    'access callback' => 'ack_menu_realm_access',
    'access arguments' => array(
      2,
      3,
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'ack_menu.pages.inc',
  );
  return $items;
}