Commit 4221b3f4 authored by Lily Yan's avatar Lily Yan
Browse files

FDSU-1805 Use long name instead of short name for faculty list.

parent 36183900
......@@ -144,12 +144,12 @@ function uw_virtual_site_homepage_field_default_field_bases() {
'settings' => array(
'allowed_values' => array(
'default' => 'University of Waterloo',
'ahs' => 'Applied Health Science',
'arts' => 'Arts',
'engineering' => 'Engineering',
'environment' => 'Environment',
'math' => 'Math',
'science' => 'Science',
'ahs' => 'Faculty of Applied Health Sciences',
'arts' => 'Faculty of Arts',
'engineering' => 'Faculty of Engineering',
'environment' => 'Faculty of Environment',
'math' => 'Faculty of Mathematics',
'science' => 'Faculty of Science',
'cgc' => 'Conrad Grebel University College',
'ren' => 'Renison University College',
'stj' => 'St. Jerome\'s University',
......
......@@ -284,7 +284,7 @@ function _get_faculty_list_value($field_uw_faculty) {
$faculty_list_value = 'environment';
}
if (strpos($faculty_name, 'math') != FALSE) {
if (strpos($faculty_name, 'math') != FALSE || strpos($faculty_name, 'maths') != FALSE) {
$faculty_list_value = 'math';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment