function admin_get_semester_name

7.x admin.module admin_get_semester_name($semester_num)
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.

3 calls to admin_get_semester_name()
admin_display_edit_degree in modules/admin/admin.degrees.inc
This screen displays the form which allows the user to actually edit a degree.
admin_display_groups_popup_show_group_use in modules/admin/admin.groups.inc
Displays a popup showing where a particular group is being used in FlightPath.
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 951
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;
}