Tweaks
This commit is contained in:
114
booking.module
114
booking.module
@@ -271,17 +271,6 @@ function booking_menu() {
|
|||||||
'type' => MENU_SUGGESTED_ITEM,
|
'type' => MENU_SUGGESTED_ITEM,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (variable_get('booking_enable_variety_sessions', 0) == 1)
|
|
||||||
{
|
|
||||||
$items['variety'] = array(
|
|
||||||
'title' => $bookingTitle . ' Variety Sessions',
|
|
||||||
'page callback' => 'drupal_get_form',
|
|
||||||
'page arguments' => array('booking_variety_regn_form'),
|
|
||||||
'access arguments' => array('access booking form'),
|
|
||||||
'type' => MENU_NORMAL_ITEM,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
//Various reports
|
//Various reports
|
||||||
$items['admin/booking/summary'] = array(
|
$items['admin/booking/summary'] = array(
|
||||||
'title' => 'Booking Summary',
|
'title' => 'Booking Summary',
|
||||||
@@ -361,6 +350,63 @@ function booking_menu() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (variable_get('booking_enable_variety_sessions', 0) == 1)
|
||||||
|
{
|
||||||
|
$items['variety'] = array(
|
||||||
|
'title' => $bookingTitle . ' Variety Sessions',
|
||||||
|
'page callback' => 'drupal_get_form',
|
||||||
|
'page arguments' => array('booking_variety_regn_form'),
|
||||||
|
'access arguments' => array('access booking form'),
|
||||||
|
'type' => MENU_NORMAL_ITEM,
|
||||||
|
);
|
||||||
|
|
||||||
|
//configure variety sessions
|
||||||
|
$items['admin/config/booking/variety/create'] = array(
|
||||||
|
'title' => 'Add New Variety Session Timeslot',
|
||||||
|
'description' => 'Add variety session timeslot for the Booking module',
|
||||||
|
'page callback' => 'drupal_get_form',
|
||||||
|
//'page arguments' => array('booking_price_create'),
|
||||||
|
'page arguments' => array('booking_variety_timeslot_form', true),
|
||||||
|
'access arguments' => array('access administration pages'),
|
||||||
|
'type' => MENU_LOCAL_ACTION,
|
||||||
|
);
|
||||||
|
|
||||||
|
$items['admin/config/booking/variety/%/edit'] = array(
|
||||||
|
'title' => 'Edit Variety Session Timeslot',
|
||||||
|
'page callback' => 'drupal_get_form',
|
||||||
|
'page arguments' => array('booking_variety_timeslot_form', false, 4),
|
||||||
|
'access arguments' => array('access administration pages'),
|
||||||
|
'type' => MENU_CALLBACK,
|
||||||
|
);
|
||||||
|
|
||||||
|
$items['admin/config/booking/variety/%/session/list'] = array(
|
||||||
|
'title' => 'List Variety Sessions',
|
||||||
|
'description' => 'List variety sessions for the specified timeslot',
|
||||||
|
'page callback' => 'drupal_get_form',
|
||||||
|
'page arguments' => array('booking_variety_list_session_form', 4),
|
||||||
|
'access arguments' => array('access administration pages'),
|
||||||
|
'type' => MENU_CALLBACK,
|
||||||
|
);
|
||||||
|
|
||||||
|
$items['admin/config/booking/variety/%/session/create'] = array(
|
||||||
|
'title' => 'Add New Variety Session',
|
||||||
|
'description' => 'Add variety session to the specified timeslot',
|
||||||
|
'page callback' => 'drupal_get_form',
|
||||||
|
'page arguments' => array('booking_variety_create_session_form', 4),
|
||||||
|
'access arguments' => array('access administration pages'),
|
||||||
|
'type' => MENU_CALLBACK,
|
||||||
|
);
|
||||||
|
|
||||||
|
$items['admin/config/booking/variety/session/%/edit'] = array(
|
||||||
|
'title' => 'Edit Variety Session',
|
||||||
|
'description' => 'Edit variety session for the specified timeslot',
|
||||||
|
'page callback' => 'drupal_get_form',
|
||||||
|
'page arguments' => array('booking_variety_edit_session_form', 5),
|
||||||
|
'access arguments' => array('access administration pages'),
|
||||||
|
'type' => MENU_CALLBACK,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
//configure study groups
|
//configure study groups
|
||||||
if (variable_get('booking_enable_studygroups', 0) == 1)
|
if (variable_get('booking_enable_studygroups', 0) == 1)
|
||||||
{
|
{
|
||||||
@@ -598,52 +644,6 @@ function booking_menu() {
|
|||||||
'type' => MENU_CALLBACK,
|
'type' => MENU_CALLBACK,
|
||||||
);
|
);
|
||||||
|
|
||||||
//configure variety sessions
|
|
||||||
$items['admin/config/booking/variety/create'] = array(
|
|
||||||
'title' => 'Add New Variety Session Timeslot',
|
|
||||||
'description' => 'Add variety session timeslot for the Booking module',
|
|
||||||
'page callback' => 'drupal_get_form',
|
|
||||||
//'page arguments' => array('booking_price_create'),
|
|
||||||
'page arguments' => array('booking_variety_timeslot_form', true),
|
|
||||||
'access arguments' => array('access administration pages'),
|
|
||||||
'type' => MENU_LOCAL_ACTION,
|
|
||||||
);
|
|
||||||
|
|
||||||
$items['admin/config/booking/variety/%/edit'] = array(
|
|
||||||
'title' => 'Edit Variety Session Timeslot',
|
|
||||||
'page callback' => 'drupal_get_form',
|
|
||||||
'page arguments' => array('booking_variety_timeslot_form', false, 4),
|
|
||||||
'access arguments' => array('access administration pages'),
|
|
||||||
'type' => MENU_CALLBACK,
|
|
||||||
);
|
|
||||||
|
|
||||||
$items['admin/config/booking/variety/%/session/list'] = array(
|
|
||||||
'title' => 'List Variety Sessions',
|
|
||||||
'description' => 'List variety sessions for the specified timeslot',
|
|
||||||
'page callback' => 'drupal_get_form',
|
|
||||||
'page arguments' => array('booking_variety_list_session_form', 4),
|
|
||||||
'access arguments' => array('access administration pages'),
|
|
||||||
'type' => MENU_CALLBACK,
|
|
||||||
);
|
|
||||||
|
|
||||||
$items['admin/config/booking/variety/%/session/create'] = array(
|
|
||||||
'title' => 'Add New Variety Session',
|
|
||||||
'description' => 'Add variety session to the specified timeslot',
|
|
||||||
'page callback' => 'drupal_get_form',
|
|
||||||
'page arguments' => array('booking_variety_create_session_form', 4),
|
|
||||||
'access arguments' => array('access administration pages'),
|
|
||||||
'type' => MENU_CALLBACK,
|
|
||||||
);
|
|
||||||
|
|
||||||
$items['admin/config/booking/variety/session/%/edit'] = array(
|
|
||||||
'title' => 'Edit Variety Session',
|
|
||||||
'description' => 'Edit variety session for the specified timeslot',
|
|
||||||
'page callback' => 'drupal_get_form',
|
|
||||||
'page arguments' => array('booking_variety_edit_session_form', 5),
|
|
||||||
'access arguments' => array('access administration pages'),
|
|
||||||
'type' => MENU_CALLBACK,
|
|
||||||
);
|
|
||||||
|
|
||||||
//the paypal IPN
|
//the paypal IPN
|
||||||
$items[BOOKING_PAYPAL_IPN_PATH] = array(
|
$items[BOOKING_PAYPAL_IPN_PATH] = array(
|
||||||
'type' => MENU_CALLBACK,
|
'type' => MENU_CALLBACK,
|
||||||
|
@@ -197,7 +197,7 @@ $booking_registration_intro_text = variable_get('booking_registration_intro_text
|
|||||||
'#title' => t('Text to use for landing page on return from paypal website'),
|
'#title' => t('Text to use for landing page on return from paypal website'),
|
||||||
'#type' => 'textarea',
|
'#type' => 'textarea',
|
||||||
'#description' => t(''),
|
'#description' => t(''),
|
||||||
'#default_value' => variable_get('booking_regn_completed_page', ''),
|
'#default_value' => variable_get('booking_regn_completed_page', '<p>Thankyou for registering for [booking:eventname].</p>'),
|
||||||
);
|
);
|
||||||
/*Text for the balance payment page*/
|
/*Text for the balance payment page*/
|
||||||
$form['balance'] = array(
|
$form['balance'] = array(
|
||||||
|
Reference in New Issue
Block a user