admin_get_semester_name

4.x admin.module admin_get_semester_name($semester_num)

Convienence function to get semester's default regular name.

2 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.

File

modules/admin/admin.module, line 872
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;
}