You are here

function makemeeting_menu in Make Meeting Scheduler 7

Same name and namespace in other branches
  1. 6 makemeeting.module \makemeeting_menu()
  2. 7.2 makemeeting.module \makemeeting_menu()

hook_menu implementation

File

./makemeeting.module, line 130
Make Meeting module

Code

function makemeeting_menu() {
  $items['admin/config/content/makemeeting'] = array(
    'title' => 'MakeMeeting',
    'description' => 'Main admin panel for Make Meeting module',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'makemeeting_admin_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'makemeeting.admin.inc',
  );
  $items['makemeeting'] = array(
    'title' => 'Info page',
    'description' => 'The module information page',
    'page callback' => 'makemeeting_infopage',
    'access arguments' => array(
      'view makemeeting poll',
    ),
    'file' => 'makemeeting.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['makemeeting/%'] = array(
    'title' => 'Question page',
    'description' => 'Make a vote on the question',
    'page callback' => 'makemeeting_show_pollpage',
    'page arguments' => array(
      1,
    ),
    'access arguments' => array(
      'view makemeeting poll',
    ),
    'file' => 'makemeeting.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['makemeeting/%/log'] = array(
    'title' => 'Log page',
    'description' => 'Show logs',
    'page callback' => 'makemeeting_logpage',
    'page arguments' => array(
      1,
    ),
    'access arguments' => array(
      'view makemeeting poll',
    ),
    'file' => 'makemeeting.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['makemeeting/%/sendfw'] = array(
    'title' => 'Send forward',
    'description' => 'Send the url to your friends',
    'page callback' => 'makemeeting_sendfw',
    'page arguments' => array(
      1,
    ),
    'access arguments' => array(
      'view makemeeting poll',
    ),
    'file' => 'makemeeting.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['user/%user/makemeeting'] = array(
    'title' => 'My polls',
    'description' => 'List of my polls',
    'page callback' => 'makemeeting_mypage',
    'access callback' => '_makemeeting_access_userpolls',
    'access arguments' => array(
      1,
    ),
    'file' => 'makemeeting.pages.inc',
    'type' => MENU_SUGGESTED_ITEM,
  );
  return $items;
}