You are here

function course_rules_condition_course_enrollment_check in Course 7

Same name and namespace in other branches
  1. 8.3 includes/course.rules.inc \course_rules_condition_course_enrollment_check()
  2. 8.2 includes/course.rules.inc \course_rules_condition_course_enrollment_check()
  3. 7.2 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->nid;
  $uid = $user->uid;
  return course_enrollment_check($nid, $uid);
}