You are here

function advpoll_convert_menu in Advanced Poll 6

Same name and namespace in other branches
  1. 5 advpoll_convert.module \advpoll_convert_menu()
  2. 6.3 advpoll_convert.module \advpoll_convert_menu()
  3. 6.2 advpoll_convert.module \advpoll_convert_menu()

Implementation of hook_menu().

File

./advpoll_convert.module, line 22
Converts a site's standard Drupal polls into Advanced Poll polls.

Code

function advpoll_convert_menu() {
  global $user;
  $items = array();
  $items['admin/content/advpoll-convert'] = array(
    'title' => 'Advanced Poll Converter',
    'description' => 'Convert your site\'s standard Drupal polls into Advanced Poll polls.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'advpoll_convert_form',
    ),
    'access arguments' => array(
      'administer nodes',
    ),
  );
  return $items;
}