function _menu_position_menu in Menu Position 6
Implements hook_menu().
1 call to _menu_position_menu()
- menu_position_menu in ./
menu_position.module - Implements hook_menu().
File
- ./
menu_position.admin.inc, line 10 - Provides infrequently used functions and hooks for menu_position.
Code
function _menu_position_menu() {
$items['admin/build/menu-position'] = array(
'title' => 'Menu position rules',
'description' => 'Configure rules for menu positions.',
'access arguments' => array(
'administer menu positions',
),
'page callback' => 'menu_position_rules_form_callback',
'type' => MENU_NORMAL_ITEM,
'file' => 'menu_position.admin.inc',
);
$items['admin/build/menu-position/rules'] = array(
'title' => 'Rules',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/build/menu-position/add'] = array(
'title' => 'Add rule',
'description' => 'Add a new menu position rule.',
'access arguments' => array(
'administer menu positions',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'menu_position_add_rule_form',
),
'type' => MENU_LOCAL_TASK,
'file' => 'menu_position.admin.inc',
);
$items['admin/build/menu-position/edit'] = array(
'title' => 'Edit menu position rule',
'description' => 'Edit a menu position rule.',
'access arguments' => array(
'administer menu positions',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'menu_position_edit_rule_form',
),
'type' => MENU_CALLBACK,
'file' => 'menu_position.admin.inc',
);
$items['admin/build/menu-position/delete'] = array(
'title' => 'Delete menu position rule',
'description' => 'Delete a menu position rule.',
'access arguments' => array(
'administer menu positions',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'menu_position_delete_rule_form',
),
'type' => MENU_CALLBACK,
'file' => 'menu_position.admin.inc',
);
$items['menu-position'] = array(
'title' => 'Menu position router',
'description' => 'Sets access to all menu position links.',
'access arguments' => array(
'access content',
),
'page callback' => 'menu_position_router',
'type' => MENU_CALLBACK,
'file' => 'menu_position.admin.inc',
);
return $items;
}