You are here

function course_signup_signup_delete in Course 7

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

Implements hook_signup_delete().

Un-enroll the user.

File

modules/course_signup/course_signup.module, line 106

Code

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