function fp_get_faculty_name

6.x db.inc fp_get_faculty_name($cwid)
4.x db.inc fp_get_faculty_name($cwid)
5.x db.inc fp_get_faculty_name($cwid)

Returns the faculty member's name based on the ID provided.

18 calls to fp_get_faculty_name()
advise_display_history in modules/advise/advise.history.inc
Displays the history tab on screen.
advise_popup_display_summary in modules/advise/advise.history.inc
Displays the printable advising summary.
alerts_advisees_alerts_form in modules/alerts/alerts.module
Displays alerts for our various advisees.
audit_display_audit in modules/audit/audit.module
calendar_build_custom_calendar in modules/calendar/calendar.module
Actually renders the HTML for the calendar.

... See full list

File

includes/db.inc, line 366
This file contains mostly db shortcuts.

Code

function fp_get_faculty_name($cwid) {

  // Already cached?
  if (isset($GLOBALS ['fp_cache_get_faculty_name'][$cwid])) {
    return $GLOBALS ['fp_cache_get_faculty_name'][$cwid];
  }


  $db = get_global_database_handler();
  $name = $db->get_faculty_name($cwid, FALSE);
  if (!$name) {
    $name = t("Unknown Advisor");
  }

  $GLOBALS ['fp_cache_get_faculty_name'][$cwid] = $name;

  return $name;
}