function schools_get_school_name_for_id

6.x schools.module schools_get_school_name_for_id($school_id)
22 calls to schools_get_school_name_for_id()
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.
admin_copy_degree_form_submit in modules/admin/admin.degrees.inc
admin_copy_degree_form_validate in modules/admin/admin.degrees.inc
Validate handler. Make sure our allow_overwrite setting is working. Check for existing major code.

... 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;
}