function hook_student_load

Allows modules to hook in after a new student object is created.

This is so that modules can modify student objects (including what courses they have taken) when that student object is first created. For example, if you need to query extra databases to get all of a student's credits.

File

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

Code

function hook_student_load(&$student) {
  if ($student->gpa > 3) {
    $student->deans_list = TRUE;
  }
}