You are here

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

Implements hook_menu().

File

modules/rooms_pricing/rooms_pricing.module, line 50
Manages pricing for Bookable Units and displaying dates on the jquery FullCalendar plugin.

Code

function rooms_pricing_menu() {
  $items = array();
  $items['admin/rooms/units/unit/%rooms_unit/pricing'] = array(
    'title' => 'Manage Pricing',
    'page callback' => 'rooms_pricing_page',
    'page arguments' => array(
      4,
      6,
      7,
    ),
    'access callback' => 'rooms_unit_access',
    'access arguments' => array(
      'update pricing',
      4,
    ),
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
    'weight' => '30',
  );
  $items['rooms/units/unit/%rooms_unit/pricing/json/%/%'] = array(
    'title' => 'Pricing Info',
    'page callback' => 'rooms_pricing_json',
    'page arguments' => array(
      3,
      6,
      7,
    ),
    'access callback' => 'rooms_unit_access',
    'access arguments' => array(
      'update pricing',
      3,
    ),
    'type' => MENU_CALLBACK,
    'weight' => '30',
  );
  $items['admin/rooms/units/bulk_pricing_management'] = array(
    'title' => 'Bulk pricing management',
    'page callback' => 'rooms_pricing_bulk_pricing_management',
    'page arguments' => array(
      4,
      5,
      6,
    ),
    'access arguments' => array(
      'administer rooms_unit pricing',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  return $items;
}