function nodehierarchy_menu in Node Hierarchy 6
Same name and namespace in other branches
- 5 nodehierarchy.module \nodehierarchy_menu()
- 6.3 nodehierarchy.module \nodehierarchy_menu()
- 6.2 nodehierarchy.module \nodehierarchy_menu()
- 7.4 nodehierarchy.module \nodehierarchy_menu()
- 7.2 nodehierarchy.module \nodehierarchy_menu()
Implementation of hook_menu().
File
- ./
nodehierarchy.module, line 55
Code
function nodehierarchy_menu() {
$items = array();
$items['hierarchy'] = array(
'title' => 'hierarchy',
'callback' => 'nodehierarchy_callback',
'type' => MENU_CALLBACK,
'access' => 1,
);
$items['nodehierarchy/ajax'] = array(
'title' => 'Node hierarchy ajax callback',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'page callback' => 'nodehierarchy_callback_ajax',
);
$items['admin/content/nodehierarchy'] = array(
'title' => t('Site Outline'),
'description' => 'Display an hierarchical outline of the site.',
'page callback' => 'nodehierarchy_site_outline',
'access arguments' => array(
'view site outline',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/nodehierarchy'] = array(
'title' => 'Node Hierarchy',
'description' => 'Administer default Node Hierarchy settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodehierarchy_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
$items['hierarchy/%node/up'] = array(
'title' => 'hierarchy',
'page callback' => 'nodehierarchy_callback',
'page arguments' => array(
1,
'up',
),
'access callback' => 'user_access',
'access arguments' => array(
'reorder children',
),
'type' => MENU_CALLBACK,
);
$items['hierarchy/%node/down'] = array(
'title' => 'hierarchy',
'page callback' => 'nodehierarchy_callback',
'page arguments' => array(
1,
'down',
),
'access callback' => 'user_access',
'access arguments' => array(
'reorder children',
),
'type' => MENU_CALLBACK,
);
$items['node/%node/children'] = array(
'title' => 'Children',
'page callback' => 'nodehierarchy_view_children',
'page arguments' => array(
1,
),
'access callback' => 'nodehierarchy_children_tab_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'weight' => 5,
);
return $items;
}