You are here

function votingapi_generate_menu in Voting API 5

File

./votingapi_generate.module, line 60

Code

function votingapi_generate_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/content/generate_votes',
      'title' => t('Generate votes'),
      'description' => t('Generate a given number of VotingAPI votes.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'votingapi_generate_votes_form',
      ),
      'access' => user_access('administer nodes'),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}