Various tweaks
This commit is contained in:
@@ -141,7 +141,7 @@ function booking_price_form($node, &$form_state, $create, $editid = 0)
|
||||
'#size' => 60,
|
||||
'#maxlength' => 150,
|
||||
'#required' => TRUE,
|
||||
'#default_value' => !empty($data->booking_price_descrip) ? $data->booking_price_descrip : '',
|
||||
'#default_value' => !_booking_person_studygroups_cleanup($data->booking_price_descrip) ? $data->booking_price_descrip : '',
|
||||
);
|
||||
$form['booking_price'] = array (
|
||||
'#type' => 'textfield',
|
||||
@@ -150,7 +150,7 @@ function booking_price_form($node, &$form_state, $create, $editid = 0)
|
||||
'#size' => 5,
|
||||
'#maxlength' => 10,
|
||||
'#required' => TRUE,
|
||||
'#default_value' => !empty($data->booking_price) ? $data->booking_price : '',
|
||||
'#default_value' => !_booking_person_studygroups_cleanup($data->booking_price) ? $data->booking_price : '',
|
||||
);
|
||||
$form['booking_late_price'] = array (
|
||||
'#type' => 'textfield',
|
||||
@@ -159,33 +159,33 @@ function booking_price_form($node, &$form_state, $create, $editid = 0)
|
||||
'#size' => 5,
|
||||
'#maxlength' => 10,
|
||||
'#required' => TRUE,
|
||||
'#default_value' => !empty($data->booking_late_price) ? $data->booking_late_price : '',
|
||||
'#default_value' => !_booking_person_studygroups_cleanup($data->booking_late_price) ? $data->booking_late_price : '',
|
||||
);
|
||||
$form['booking_buttonid'] = array (
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('The PayPal button ID. This setting is deprecated.'),
|
||||
'#size' => 20,
|
||||
'#maxlength' => 20,
|
||||
'#default_value' => !empty($data->booking_buttonid) ? $data->booking_buttonid : '',
|
||||
'#default_value' => !_booking_person_studygroups_cleanup($data->booking_buttonid) ? $data->booking_buttonid : '',
|
||||
);
|
||||
$form['booking_late_buttonid'] = array (
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('The PayPal button ID for late bookings. This setting is deprecated.'),
|
||||
'#size' => 20,
|
||||
'#maxlength' => 20,
|
||||
'#default_value' => !empty($data->booking_late_buttonid) ? $data->booking_late_buttonid : '',
|
||||
'#default_value' => !_booking_person_studygroups_cleanup($data->booking_late_buttonid) ? $data->booking_late_buttonid : '',
|
||||
);
|
||||
|
||||
$form['booking_price_active'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Tick to make this price active for the current event.'),
|
||||
'#default_value' => !empty($data->booking_price_active) ? $data->booking_price_active : '',
|
||||
'#default_value' => !_booking_person_studygroups_cleanup($data->booking_price_active) ? $data->booking_price_active : '',
|
||||
);
|
||||
|
||||
$form['booking_depositonly'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Tick to indicate that this is a deposit only price.'),
|
||||
'#default_value' => !empty($data->booking_depositonly) ? $data->booking_depositonly : 0,
|
||||
'#default_value' => !_booking_person_studygroups_cleanup($data->booking_depositonly) ? $data->booking_depositonly : 0,
|
||||
);
|
||||
|
||||
if ($create == true)
|
||||
|
Reference in New Issue
Block a user