function hook_degree_plan_load

Allows modules to hook in after a degree plan object is created & loaded.

Specifically, this is called at the end of the DegreePlan::load_degree_plan() method is called.

Similar concept to hook_student_load

See also

hook_student_load()

File

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

Code

function hook_degree_plan_load(&$degree) {
  if ($degree->major_code == 'XYZ') {
    $degree->is_xyz = TRUE;
  }
}