add configurable text at the start of the variety session registration form
This commit is contained in:
@@ -331,6 +331,15 @@ $booking_registration_intro_text = variable_get('booking_registration_intro_text
|
||||
'#format' => 'full_html',
|
||||
);
|
||||
|
||||
$form['otherpages']['booking_variety_regn_page'] = array(
|
||||
'#title' => t('Text to use at the start of the variety session registration form'),
|
||||
'#type' => 'textarea',
|
||||
'#description' => t(''),
|
||||
'#default_value' => isset(variable_get('booking_variety_regn_page')['value']) ? variable_get('booking_variety_regn_page')['value'] : $defaults,
|
||||
'#type' => 'text_format',
|
||||
'#format' => 'full_html',
|
||||
);
|
||||
|
||||
//see http://drupal.org/node/820816#comment-3100356
|
||||
//and http://drupal.org/node/823362
|
||||
/*
|
||||
|
@@ -15,6 +15,9 @@ function booking_variety_regn_form($node, &$form_state)
|
||||
$form = array();
|
||||
$data = $node;
|
||||
|
||||
$markup_input = variable_get('booking_variety_regn_page');
|
||||
$markup_html = token_replace($markup_input['value'], booking_define_tokens());
|
||||
|
||||
// Query the variety timeslot table
|
||||
$timeslot_query = db_select('booking_variety_timeslots', 'v');
|
||||
$timeslot_query->condition('v.booking_eventid', $event->eid, '=')
|
||||
@@ -25,6 +28,11 @@ function booking_variety_regn_form($node, &$form_state)
|
||||
$form['#prefix'] = '<div id="booking_variety_form_wrapper">';
|
||||
$form['#suffix'] = '</div>';
|
||||
|
||||
$form['paragraph'] = array(
|
||||
'#type' => 'markup',
|
||||
'#markup' => $markup_html,
|
||||
);
|
||||
|
||||
$form['identity'] = array(
|
||||
'#type' => 'fieldset',
|
||||
'#title' => 'Enter Your Details',
|
||||
|
Reference in New Issue
Block a user