Add NZ as a state and fix _booking_get_emergency_contact_types

This commit is contained in:
2015-05-11 22:32:47 +10:00
parent eae1bf0f31
commit 7df87c4f62

View File

@@ -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