function vud_node_menu in Vote Up/Down 7
Same name and namespace in other branches
- 6.3 vud_node/vud_node.module \vud_node_menu()
- 6.2 vud_node/vud_node.module \vud_node_menu()
Implementation of hook_menu().
File
- vud_node/
vud_node.module, line 39 - Adds a voting widget to nodes.
Code
function vud_node_menu() {
$items = array();
$items['admin/config/search/voteupdown/node'] = array(
'title' => 'Nodes',
'description' => 'Vote Up/Down Node settings',
'page arguments' => array(
'vud_node_admin_settings',
),
'access arguments' => array(
'administer vote up/down on nodes',
),
'weight' => -10,
'type' => MENU_LOCAL_TASK,
);
$items['node/%node/vud-votes'] = array(
'title' => 'Voting details',
'page callback' => 'vud_node_tracker',
'access callback' => 'vud_node_tab_view_stats',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}