logic fix
This commit is contained in:
@@ -27,17 +27,6 @@ function booking_admin() {
|
|||||||
'#collapsible' => TRUE,
|
'#collapsible' => TRUE,
|
||||||
);
|
);
|
||||||
|
|
||||||
$form['email']['booking_enable_html_mail'] = array(
|
|
||||||
'#type' => 'radios',
|
|
||||||
'#title' => t('Enable html emails?'),
|
|
||||||
'#description' => t('Turn this feature on for html based emails, otherwise plaintext emails will be used. HTML based emails will require a custom template file to be defined.<br /><strong>WARNING: This will reset all existing mail definitions.</strong> Take care before changing this value.'),
|
|
||||||
'#options' => array(
|
|
||||||
0 => t('No'),
|
|
||||||
t('Yes')
|
|
||||||
),
|
|
||||||
'#default_value' => variable_get('booking_enable_html_mail', 0)
|
|
||||||
);
|
|
||||||
|
|
||||||
$form['email']['booking_from_email'] = array(
|
$form['email']['booking_from_email'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => t('Sender Email Address'),
|
'#title' => t('Sender Email Address'),
|
||||||
@@ -65,7 +54,7 @@ function booking_admin() {
|
|||||||
'#size' => 60,
|
'#size' => 60,
|
||||||
'#maxlength' => 150,
|
'#maxlength' => 150,
|
||||||
'#required' => TRUE,
|
'#required' => TRUE,
|
||||||
'#default_value' => variable_get('booking_contact_email', variable_get('site_mail', ini_get('sendmail_from')))
|
'#default_value' => variable_get('booking_contact_email', variable_get('site_mail', ini_get('sendmail_from'))),
|
||||||
);
|
);
|
||||||
|
|
||||||
$form['email']['booking_logistics_email'] = array(
|
$form['email']['booking_logistics_email'] = array(
|
||||||
@@ -75,7 +64,17 @@ function booking_admin() {
|
|||||||
'#size' => 60,
|
'#size' => 60,
|
||||||
'#maxlength' => 150,
|
'#maxlength' => 150,
|
||||||
'#required' => TRUE,
|
'#required' => TRUE,
|
||||||
'#default_value' => variable_get('booking_logistics_email', variable_get('site_mail', ini_get('sendmail_from')))
|
'#default_value' => variable_get('booking_logistics_email', variable_get('site_mail', ini_get('sendmail_from'))),
|
||||||
|
);
|
||||||
|
$form['email']['booking_enable_html_mail'] = array(
|
||||||
|
'#type' => 'radios',
|
||||||
|
'#title' => t('Enable html emails?'),
|
||||||
|
'#description' => t('Turn this feature on for html based emails, otherwise plaintext emails will be used. HTML based emails will require a custom template file to be defined.<br /><strong>WARNING: This will reset all existing mail definitions.</strong> Take care before changing this value.'),
|
||||||
|
'#options' => array(
|
||||||
|
0 => t('No'),
|
||||||
|
t('Yes')
|
||||||
|
),
|
||||||
|
'#default_value' => variable_get('booking_enable_html_mail', 0),
|
||||||
);
|
);
|
||||||
$form['email']['booking_custom_email_count'] = array(
|
$form['email']['booking_custom_email_count'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
|
@@ -38,7 +38,7 @@ function booking_register_page()
|
|||||||
);
|
);
|
||||||
//even if we are allowed to show the early access code, only show it if it is prior to the normal registration opening time
|
//even if we are allowed to show the early access code, only show it if it is prior to the normal registration opening time
|
||||||
$return_array[] = array(
|
$return_array[] = array(
|
||||||
'form' => drupal_get_form('booking_form', true, ($booking_times->booking_register_open < time()))
|
'form' => drupal_get_form('booking_form', true, ($booking_times->booking_register_open > time()))
|
||||||
);
|
);
|
||||||
} elseif ($booking_times->booking_register_close < time()) {
|
} elseif ($booking_times->booking_register_close < time()) {
|
||||||
//too late to register
|
//too late to register
|
||||||
|
Reference in New Issue
Block a user