function nodesymlinks_menu in NodeSymlinks 6
Same name and namespace in other branches
- 7 nodesymlinks.module \nodesymlinks_menu()
Implementation of hook_menu().
File
- ./
nodesymlinks.module, line 33 - Node Symlinks allows creating duplicate menu links with unique id to all nodes. As a result all these duplicates have unique menu trails and breadcrumbs.
Code
function nodesymlinks_menu() {
$items = array();
$items['node/%node/mid/%'] = array(
'title' => 'Content Duplicate',
'page callback' => 'nodesymlinks_page',
'page arguments' => array(
1,
3,
),
'title callback' => 'nodesymlinks_menu_title',
'title arguments' => array(
1,
),
'access callback' => 'node_access',
'access arguments' => array(
'view',
1,
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/nodesymlinks'] = array(
'title' => 'NodeSymlinks',
'page callback' => 'nodesymlinks_admin',
'access arguments' => array(
'access administration pages',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'nodesymlinks.admin.inc',
);
$items['admin/settings/nodesymlinks/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/settings/nodesymlinks/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodesymlinks_settings',
),
'access arguments' => array(
'access administration pages',
),
'type' => MENU_LOCAL_TASK,
'file' => 'nodesymlinks.admin.inc',
);
$items['nodesymlinks/ahah'] = array(
'page callback' => 'nodesymlinks_ahah_handler',
'access arguments' => array(
'administer nodesymlinks',
),
'type' => MENU_CALLBACK,
'file' => 'nodesymlinks.inc',
);
return $items;
}