function nodeaccess_menu in Nodeaccess 6
Same name and namespace in other branches
- 5 nodeaccess.module \nodeaccess_menu()
- 6.2 nodeaccess.module \nodeaccess_menu()
- 7 nodeaccess.module \nodeaccess_menu()
Implementation of hook_menu().
File
- ./
nodeaccess.module, line 17
Code
function nodeaccess_menu() {
$items['admin/user/nodeaccess'] = array(
'title' => 'Nodeaccess',
'description' => 'Change default settings for the Nodeaccess module.',
'page callback' => 'nodeaccess_admin',
'access arguments' => array(
'administer nodeaccess',
),
);
$items['node/%node/grant'] = array(
'title' => 'Grant',
'page callback' => 'nodeaccess_grants',
'page arguments' => array(
1,
),
'access callback' => 'nodeaccess_access',
'access arguments' => array(
'grant',
1,
),
'weight' => 5,
'type' => MENU_LOCAL_TASK,
);
return $items;
}