function vote_up_down_menu in Vote Up/Down 6
Same name and namespace in other branches
- 5 vote_up_down.module \vote_up_down_menu()
Implementation of hook_menu().
File
- ./
vote_up_down.module, line 145
Code
function vote_up_down_menu() {
$items = array();
$items['admin/settings/voteupdown'] = array(
'title' => 'Vote Up/Down configuration',
'description' => 'Control the functioning of Vote Up/Down.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'vote_up_down_admin_settings',
),
'access arguments' => array(
'administer vote up/down',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/voteupdown/general'] = array(
'title' => 'General',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/settings/voteupdown/advanced'] = array(
'title' => 'Advanced',
'description' => 'Advanced configuration',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'vote_up_down_admin_advanced_settings',
),
'access arguments' => array(
'administer vote up/down',
),
'type' => MENU_LOCAL_TASK,
);
// vote_up_down/$type/$cid/$value/$tag/$ajax/$alt
$items['vote_up_down'] = array(
'title' => 'Vote',
'page callback' => 'vote_up_down_vote',
'access callback' => 'vote_up_down_access',
'type' => MENU_CALLBACK,
);
$items['voteupdown'] = array(
'title' => 'Voting statistics',
'page callback' => 'vote_up_down_page',
'access arguments' => array(
'access vote up/down statistics',
),
);
$items['voteupdown/usersvotes'] = array(
'title' => 'Users by votes',
'page callback' => 'vote_up_down_page',
'access arguments' => array(
'access vote up/down statistics',
),
);
$items['node/%node/votes'] = array(
'title' => 'Voting details',
'page callback' => 'vote_up_down_tracker',
'page arguments' => array(
1,
),
'access callback' => 'vote_up_down_node_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
);
$items['user/%user/votesupdown'] = array(
'title' => 'Your votes',
'page callback' => 'vote_up_down_user_votes',
'page arguments' => array(
1,
),
'access arguments' => array(
'access vote up/down statistics',
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}