You are here

function makemeeting_menu in Make Meeting Scheduler 6

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

Implements hook_menu().

File

./makemeeting.module, line 44
Make Meeting module

Code

function makemeeting_menu() {
  $items['admin/settings/makemeeting'] = array(
    'title' => 'MakeMeeting',
    'description' => 'Main admin panel for Make Meeting modul',
    'page callback' => 'makemeeting_admin_frontpage',
    'page arguments' => array(),
    '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(
      'show 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(
      'show 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(
      'show 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(
      'show poll',
    ),
    'file' => 'makemeeting.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['makemeeting/mypage'] = array(
    'title' => 'My polls',
    'description' => 'List of my polls',
    'page callback' => 'makemeeting_mypage',
    'access arguments' => array(
      'show own polls',
    ),
    'file' => 'makemeeting.pages.inc',
    'type' => MENU_SUGGESTED_ITEM,
  );
  return $items;
}