function schools_get_school_name_for_id

7.x schools.module schools_get_school_name_for_id($school_id)
6.x schools.module schools_get_school_name_for_id($school_id)
36 calls to schools_get_school_name_for_id()
admin.degrees.inc in modules/admin/admin.degrees.inc
admin.module in modules/admin/admin.module
The administrative configurations for FlightPath.
admin_add_degree_form_submit in modules/admin/admin.degrees.inc
Submit handler for the add_degree_form.
admin_add_degree_form_validate in modules/admin/admin.degrees.inc
Validate handler for add_degree_form
admin_advising_settings_form in modules/admin/admin.module
This is a systems settings form, which lets the user edit advising variabled for FlightPath.

... See full list

File

modules/schools/schools.module, line 1095
Schools module.

Code

function schools_get_school_name_for_id($school_id) {

  if (isset($GLOBALS ["fp_cache_school_name_for_id"][intval($school_id)])) {
    return $GLOBALS ["fp_cache_school_name_for_id"][intval($school_id)];
  }

  $defs = schools_get_school_definitions(FALSE);
  $rtn = @$defs [$school_id];
  if ($rtn == "") {
    $rtn .= t("School ID# ") . $school_id;
  }

  $GLOBALS ["fp_cache_school_name_for_id"][intval($school_id)] = $rtn;

  return $rtn;
}