You are here

function votingapi_menu in Voting API 5

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

File

./votingapi.module, line 10

Code

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