You are here

function quiz_delete in Quiz 5

Same name and namespace in other branches
  1. 5.2 quiz.module \quiz_delete()
  2. 6.6 quiz.module \quiz_delete()
  3. 6.2 quiz.module \quiz_delete()
  4. 6.3 quiz.module \quiz_delete()
  5. 6.4 quiz.module \quiz_delete()
  6. 6.5 quiz.module \quiz_delete()
  7. 7.6 quiz.module \quiz_delete()
  8. 7 quiz.module \quiz_delete()
  9. 7.4 quiz.module \quiz_delete()
  10. 7.5 quiz.module \quiz_delete()

Implementation of hook_delete().

File

./quiz.module, line 427
Quiz Module

Code

function quiz_delete($node) {
  db_query('DELETE FROM {quiz} WHERE nid = %d', $node->nid);
  db_query('DELETE FROM {quiz_questions} WHERE quiz_nid = %d', $node->nid);
}