function votingapi_menu in Voting API 7.3
Same name and namespace in other branches
- 5 votingapi.module \votingapi_menu()
- 6.2 votingapi.module \votingapi_menu()
- 6 votingapi.module \votingapi_menu()
- 7.2 votingapi.module \votingapi_menu()
Implements of hook_menu().
File
- ./
votingapi.module, line 343 - A generalized voting API for Drupal.
Code
function votingapi_menu() {
$items = array();
$items['admin/config/search/votingapi'] = array(
'title' => 'Voting API',
'description' => 'Configure sitewide settings for user-generated ratings and votes.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'votingapi_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer voting api',
),
'file' => 'votingapi.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
if (module_exists('devel_generate')) {
$items['admin/config/development/generate/votingapi'] = array(
'title' => 'Generate votes',
'description' => 'Generate a given number of votes on site content. Optionally delete existing votes.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'votingapi_generate_votes_form',
),
'access arguments' => array(
'administer voting api',
),
'file' => 'votingapi.admin.inc',
);
}
return $items;
}