You are here

function course_signup_signup_cancel in Course 6

Same name and namespace in other branches
  1. 7.2 modules/course_signup/course_signup.module \course_signup_signup_cancel()
  2. 7 modules/course_signup/course_signup.module \course_signup_signup_cancel()

Implements hook_signup_cancel().

Un-enrol user from course on signup cancellation.

File

modules/course_signup/course_signup.module, line 130

Code

function course_signup_signup_cancel($signup, $node) {
  $user = user_load($signup->uid);
  course_unenrol($node, $user);
}