You are here

function rooms_ui_menu in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Implements hook_menu().

File

./rooms_ui.module, line 12
Interface support to the Rooms family of modules.

Code

function rooms_ui_menu() {
  $items = array();

  // Top level "Rooms" container.
  $items['admin/rooms'] = array(
    'title' => 'Rooms',
    'description' => 'Administer Rooms.',
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'access administration pages',
    ),
    'file path' => drupal_get_path('module', 'system'),
    'file' => 'system.admin.inc',
    'weight' => -7,
  );
  $items['admin/rooms/config'] = array(
    'title' => 'Configuration',
    'description' => 'Configure settings and business rules for Rooms management.',
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'configure room settings',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 10,
    'file path' => drupal_get_path('module', 'system'),
    'file' => 'system.admin.inc',
  );
  $items['admin/rooms/config/bookings'] = array(
    'title' => 'Booking Settings',
    'description' => 'Configure settings and business rules for Bookings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'rooms_booking_settings',
    ),
    'access arguments' => array(
      'configure room settings',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/rooms/config/terminology'] = array(
    'title' => 'Rooms Terminology',
    'description' => 'Change Rooms Terminology',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'variable_group_form',
      'rooms',
    ),
    'access arguments' => array(
      'configure room settings',
    ),
  );
  return $items;
}