You are here

function course_signup_course_enrollment_delete in Course 7

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

Implements hook_course_unenroll().

Delete the signup after unenroll.

File

modules/course_signup/course_signup.module, line 232

Code

function course_signup_course_enrollment_delete($enrollment) {
  db_query("DELETE FROM {signup_log} WHERE nid = :nid and uid = :uid", array(
    ':nid' => $enrollment->nid,
    ':uid' => $enrollment->uid,
  ));
}