You are here

function course_course_enrollment_update in Course 7

Same name and namespace in other branches
  1. 7.2 course.module \course_course_enrollment_update()

Implements hook_course_enrollment_update().

When an enrollment is updated, re-evaluate requirements.

1 call to course_course_enrollment_update()
course_course_enrollment_insert in ./course.module
Implements hook_course_enrollment_insert().

File

./course.module, line 1412
course.module Core functionality for Courses.

Code

function course_course_enrollment_update($enrollment) {
  $node = node_load($enrollment->nid);
  $account = user_load($enrollment->uid);
  course_get_course($node, $account)
    ->getTracker()
    ->track();
}