You are here

function quiz_user_cancel in Quiz 7

Same name and namespace in other branches
  1. 8.6 quiz.module \quiz_user_cancel()
  2. 8.4 quiz.module \quiz_user_cancel()
  3. 8.5 quiz.module \quiz_user_cancel()
  4. 7.6 quiz.module \quiz_user_cancel()
  5. 7.4 quiz.module \quiz_user_cancel()
  6. 7.5 quiz.module \quiz_user_cancel()
  7. 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);
  }
}