You are here

function course_rules_action_course_enroll in Course 8.2

Same name and namespace in other branches
  1. 8.3 includes/course.rules.inc \course_rules_action_course_enroll()
  2. 7.2 includes/course.rules.inc \course_rules_action_course_enroll()
  3. 7 includes/course.rules.inc \course_rules_action_course_enroll()

Rules action handler for enrollment.

1 string reference to 'course_rules_action_course_enroll'
course_rules_action_info in includes/course.rules.inc
Implements hook_rules_action_info().

File

includes/course.rules.inc, line 69

Code

function course_rules_action_course_enroll($node, $account, array $args, RulesState $state, RulesAction $action, $method) {
  course_enroll($node, $account, 'rules');
}