function quiz_delete in Quiz 5
Same name and namespace in other branches
- 5.2 quiz.module \quiz_delete()
- 6.6 quiz.module \quiz_delete()
- 6.2 quiz.module \quiz_delete()
- 6.3 quiz.module \quiz_delete()
- 6.4 quiz.module \quiz_delete()
- 6.5 quiz.module \quiz_delete()
- 7.6 quiz.module \quiz_delete()
- 7 quiz.module \quiz_delete()
- 7.4 quiz.module \quiz_delete()
- 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);
}