initial work on early access codes

This commit is contained in:
2017-06-26 21:55:10 +10:00
parent 3af311609c
commit e332a35fa0
7 changed files with 87 additions and 44 deletions

View File

@@ -116,7 +116,16 @@ function booking_form($node, &$form_state, $inserting = FALSE)
$payment_type_options[$row->pid] = $row->booking_price_descrip . ' ($' . $price . ')';
}
//form starts here
// ------- form starts here ---------
//add new feature for early registration access
if ($inserting == TRUE && variable_get('booking_enable_earlyaccess_codes', 1) == 1) {
$form['early-access'] = array(
'#type' => 'fieldset',
'#title' => 'Early Registration Code'
);
}
$form['your-details'] = array(
'#type' => 'fieldset',
'#title' => 'Personal details'