From 7df87c4f62d54422246a3510dea5b26b3fac4938 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Mon, 11 May 2015 22:32:47 +1000 Subject: [PATCH] Add NZ as a state and fix _booking_get_emergency_contact_types --- booking.constants.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/booking.constants.inc b/booking.constants.inc index 304a2e4..2ae689a 100644 --- a/booking.constants.inc +++ b/booking.constants.inc @@ -13,6 +13,7 @@ function _booking_state_options() { $options_array['ACT'] = 'ACT'; $options_array['NT'] = 'NT'; $options_array['TAS'] = 'TAS'; + $options_array['NZ'] = 'NZ'; $options_array['Other'] = 'Other'; return $options_array; } @@ -52,6 +53,18 @@ function _booking_status_lookup($input) return array_search($input, _booking_status_generate()); } +/** + * Helper function to provide a list of emergency contact types for the registration form + */ +function _booking_get_emergency_contact_types() { + return array( + 'parent' => 'Parent', + 'legal_guardian' => 'Legal Guardian', + 'relative' => 'Close Relative', + 'spouse' => 'Spouse', + ); +} + /** * Helper function to provide a list of options for the t-shirt size field of the registration form */ @@ -72,6 +85,8 @@ function _get_tshirt_options() { return $options_array; } + + /** * Helper function to look up description of studygroup role * @param $input integer containing role id