Add form for defining rooms
This commit is contained in:
@@ -178,7 +178,7 @@ function booking_menu() {
|
||||
//http://www.akchauhan.com/create-drupal-form-using-theme_table-like-module-list-form/
|
||||
$items['admin/config/booking/text'] = array(
|
||||
'title' => 'Booking module text definitions',
|
||||
'description' => 'Configure text used in the CYC Booking module',
|
||||
'description' => 'Configure text used in the Event Booking module',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_tokens_admin'),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
@@ -209,14 +209,7 @@ function booking_menu() {
|
||||
'access arguments' => array('administer site configuration'),
|
||||
//'type' => MENU_LOCAL_TASK,
|
||||
);
|
||||
$items['admin/config/booking/rooms'] = array(
|
||||
'title' => 'Booking module room definitions',
|
||||
'description' => 'Configure room definitions for the Event Booking module',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_rooms_define_form'),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
//'type' => MENU_LOCAL_TASK,
|
||||
);
|
||||
|
||||
|
||||
//pages for attendees to fill out information
|
||||
$items['booking'] = array(
|
||||
@@ -393,6 +386,33 @@ function booking_menu() {
|
||||
//configure rooms
|
||||
if (variable_get('booking_enable_roomallocations', 0) == 1)
|
||||
{
|
||||
//config pages
|
||||
$items['admin/config/booking/rooms'] = array(
|
||||
'title' => 'Booking module room definitions',
|
||||
'description' => 'View and Configure room definitions for the Event Booking module',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_rooms_view_definitions'),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
//'type' => MENU_LOCAL_TASK,
|
||||
);
|
||||
$items['admin/config/booking/rooms/create'] = array(
|
||||
'title' => 'Add New Room Definition',
|
||||
'description' => 'Add room definition for the Event Booking module',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_rooms_definition_form', true),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/rooms/%/edit'] = array(
|
||||
'title' => 'Edit Room Definition',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_rooms_definition_form', false, 4),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
//admin pages
|
||||
$items['admin/booking/rooms'] = array(
|
||||
'title' => 'View Room Locations',
|
||||
'description' => 'View Room Locations',
|
||||
|
Reference in New Issue
Block a user