You are here

function pollim_menu in Poll Improved 7

Implements hook_menu().

File

./pollim.module, line 391
Module for the Pollim Entity - a starting point to create your own Entity and associated administration interface

Code

function pollim_menu() {
  $items = array();
  $items['pollim/ajax/vote/%pollim'] = array(
    'title' => '',
    'type' => MENU_CALLBACK,
    'page callback' => 'pollim_ajax_vote',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'vote pollim polls',
    ),
  );
  $items['admin/config/content/pollim'] = array(
    'title' => t('Poll Improved'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'pollim_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'pollim.settings.admin.inc',
  );
  return $items;
}