function admin_get_semester_name
Search API
6.x admin.module | admin_get_semester_name($semester_num) |
4.x admin.module | admin_get_semester_name($semester_num) |
5.x admin.module | admin_get_semester_name($semester_num) |
Convienence function to get semester's default regular name.
1 call to admin_get_semester_name()
- admin_edit_degree_form in modules/
admin/ admin.degrees.inc - Meant to replace the old-fashioned display_edit_degree function...
File
- modules/
admin/ admin.module, line 1027 - The administrative configurations for FlightPath.
Code
function admin_get_semester_name($semester_num) {
$semester = new Semester($semester_num);
$title = $semester->title;
/**
$ar = array(t("Freshman Year"), t("Sophomore Year"), t("Junior Year"), t("Senior Year"));
$s = $ar[$semester_num];
if ($s == "")
{
$s = t("Year") . " " . ($semester_num + 1);
}
*/
return $title;
}