You are here

function votingapi_menu in Voting API 6

Same name and namespace in other branches
  1. 5 votingapi.module \votingapi_menu()
  2. 6.2 votingapi.module \votingapi_menu()
  3. 7.3 votingapi.module \votingapi_menu()
  4. 7.2 votingapi.module \votingapi_menu()

Implementation of hook_menu. Adds the url path for the votingapi settings page.

File

./votingapi.module, line 16

Code

function votingapi_menu() {
  $items = array();
  $items['admin/settings/votingapi'] = array(
    'title' => 'Voting API',
    'description' => 'Global settings for the Voting API.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'votingapi_settings_form',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer voting api',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}