function quiz_user_cancel in Quiz 7
Same name and namespace in other branches
- 8.6 quiz.module \quiz_user_cancel()
- 8.4 quiz.module \quiz_user_cancel()
- 8.5 quiz.module \quiz_user_cancel()
- 7.6 quiz.module \quiz_user_cancel()
- 7.4 quiz.module \quiz_user_cancel()
- 7.5 quiz.module \quiz_user_cancel()
- 6.x quiz.module \quiz_user_cancel()
Implements hook_user_cancel().
File
- ./
quiz.module, line 1486 - Quiz Module
Code
function quiz_user_cancel($edit, $account, $method) {
db_delete('quiz_user_settings')
->condition('uid', $account->uid)
->execute();
if (variable_get('quiz_durod', 0)) {
_quiz_delete_users_results($account->uid);
}
}