function course_signup_course_enrollment_delete in Course 7.2
Same name and namespace in other branches
- 7 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 259
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,
));
}