function hook_get_user_image_url

This accepts a CWID (student_id or faculty_id), and returns back a URL to the user's image, or FALSE if it cannot find one.

type can be either "student" or "faculty"

File

includes/hook.api.php, line 30
Lists all available hooks within FlightPath's core code.

Code

function hook_get_user_image_url($cwid, $type = 'student') {

  if ($type == 'student') {
    $url = "https://myschool.edu/student-data/" . $cwid . ".jpg";
  }

  if ($type == 'faculty') {
    $url = "https://myschool.edu/facstaff-data/" . $cwid . ".jpg";
  }


  return $url;
}