function course_rules_condition_course_enrollment_check in Course 8.2
Same name and namespace in other branches
- 8.3 includes/course.rules.inc \course_rules_condition_course_enrollment_check()
- 7.2 includes/course.rules.inc \course_rules_condition_course_enrollment_check()
- 7 includes/course.rules.inc \course_rules_condition_course_enrollment_check()
Rules condition handler to check enrollment.
1 string reference to 'course_rules_condition_course_enrollment_check'
- course_rules_condition_info in includes/
course.rules.inc - Implements hook_rules_condition_info().
File
- includes/
course.rules.inc, line 29
Code
function course_rules_condition_course_enrollment_check($node, $user) {
$nid = $node
->id();
$uid = $user->uid;
return course_enrollment_check($nid, $uid);
}