summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2018-10-09 10:14:55 +0530
committerprashantsinalkar2018-10-09 10:14:55 +0530
commit419f17762c42c4465818bbccc3ce9e071b54c301 (patch)
tree5c192798a8766f86223c98912c79d03594c00f88
parent32edcd03bd3d46eac8f727e3542edf0031348b97 (diff)
downloadosdag_workshop_booking-419f17762c42c4465818bbccc3ce9e071b54c301.tar.gz
osdag_workshop_booking-419f17762c42c4465818bbccc3ce9e071b54c301.tar.bz2
osdag_workshop_booking-419f17762c42c4465818bbccc3ce9e071b54c301.zip
added state and terms and conditions field
-rw-r--r--workshop_registration.inc31
1 files changed, 31 insertions, 0 deletions
diff --git a/workshop_registration.inc b/workshop_registration.inc
index ef0b8c7..ea062fd 100644
--- a/workshop_registration.inc
+++ b/workshop_registration.inc
@@ -111,6 +111,19 @@ function osdag_workshop_booking_form($form, &$form_state)
'#maxlength' => 50,
'#required' => TRUE
);
+ $form['organization_info']['all_state'] = array(
+ '#type' => 'select',
+ '#title' => t('State'),
+ '#options' => osdag_workshop_booking_list_of_states(),
+ '#validated' => TRUE,
+ '#states' => array(
+ 'visible' => array(
+ ':input[name="country"]' => array(
+ 'value' => 'India'
+ )
+ )
+ )
+ );
$form['organization_info']['pincode'] = array(
'#type' => 'textfield',
'#title' => t('Pincode'),
@@ -308,9 +321,27 @@ function osdag_workshop_booking_form($form, &$form_state)
"Word of mouth" => "Word of mouths"),
'#required' => TRUE
);
+ $form['term_and_conditions'] = array(
+ '#type' => 'checkboxes',
+ '#title' => t('Terms And Conditions'),
+ '#options' => array(
+ 'status' => t('<a href="term-and-conditions" target="_blank">I agree to the Terms and Conditions</a>')
+ ),
+ '#required' => TRUE
+ );
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit')
);
return $form;
}
+
+function osdag_workshop_booking_form_validate($form, &form_state)
+{
+ return;
+}
+
+function osdag_workshop_booking_form_submit($form, &form_state)
+{
+ return;
+}