function fp_get_student_name

7.x db.inc fp_get_student_name($cwid, $bool_include_cwid = FALSE)
6.x db.inc fp_get_student_name($cwid, $bool_include_cwid = FALSE)
4.x db.inc fp_get_student_name($cwid)
5.x db.inc fp_get_student_name($cwid)
2 calls to fp_get_student_name()
stats_report_student_course_list in modules/stats/stats.module
This report shows a list of all of a student's courses which FlightPath is aware of.
user_edit_student_user_form in modules/user/user.module
Let the user edit a studentuser's information.

File

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

Code

function fp_get_student_name($cwid) {
  if ($cwid == 0) {
    return t("Anonymous");
  }
  $db = get_global_database_handler();
  $name = $db->get_student_name($cwid);
  if (!$name) {
    $name = t("Unknown Student");
  }
  return $name;
}