function nodehierarchy_menu in Node Hierarchy 7.4
Same name and namespace in other branches
- 5 nodehierarchy.module \nodehierarchy_menu()
- 6.3 nodehierarchy.module \nodehierarchy_menu()
- 6 nodehierarchy.module \nodehierarchy_menu()
- 6.2 nodehierarchy.module \nodehierarchy_menu()
- 7.2 nodehierarchy.module \nodehierarchy_menu()
Implements hook_menu().
2 string references to 'nodehierarchy_menu'
- nodehierarchy_menu_nodehierarchy_node_parent_form_items_alter in nodehierarchy_menu/
nodehierarchy_menu.module - Implementation of hook_nodehierarchy_node_parent_form_items_alter().
- nodehierarchy_update_7402 in ./
nodehierarchy.install - Install the Node Hierarchy menu module
File
- ./
nodehierarchy.module, line 80
Code
function nodehierarchy_menu() {
$items = array();
$items['admin/structure/nodehierarchy'] = array(
'title' => t('Node Hierarchy'),
'description' => t('Administer default Node Hierarchy settings.'),
'file' => 'nodehierarchy.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodehierarchy_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
$items['node/%node/children'] = array(
'title' => t('Children'),
'page callback' => 'nodehierarchy_view_children',
'file' => 'nodehierarchy.admin.inc',
'page arguments' => array(
1,
),
'access callback' => 'nodehierarchy_children_tab_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'weight' => 5,
);
return $items;
}