You are here

function course_signup_signup_delete in Course 6

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

Implements hook_signup_delete().

Un-enrol the user.

File

modules/course_signup/course_signup.module, line 103

Code

function course_signup_signup_delete($signup) {
  $node = node_load($signup->nid);
  $user = node_load($signup->uid);
  course_unenrol($node, $user);
}