add reserve helper role to studygroups

This commit is contained in:
2016-06-29 16:40:05 +10:00
parent a4da6d2d93
commit 7934d0718c
4 changed files with 43 additions and 34 deletions

View File

@@ -108,18 +108,20 @@ function _get_tshirt_options() {
* @param $input integer containing role id
* @return string for corresponding role
*/
function _booking_studygroup_role_lookup($input = NULL)
{
function _booking_studygroup_role_lookup($input = NULL) {
$role = array();
$role[] = t('No Role');
$role[] = t('Leader');
$role[] = t('Helper');
$role[] = t('Reserve Leader');
if ($input != NULL)
$role[] = t('Reserve Helper');
if ($input != NULL) {
return $role[$input];
else
}
else {
return $role;
}
}
/**