function hook_flightpath_can_assign_course_to_group

Is the course allowed to be assigned to the specified group? Returns TRUE or FALSE. $group should be a fully formed Group object.

This is useful if you have a rule like "No course worth 3 hours is allowed in XYZ group" or something similar.

File

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

Code

function hook_flightpath_can_assign_course_to_group($group, $course) {

  //...  Special logic here to see if this course is allowed in this group.

  return TRUE;

}