You are here

function multichoice_uninstall in Quiz 7.4

Same name and namespace in other branches
  1. 8.6 question_types/quiz_multichoice/quiz_multichoice.install \multichoice_uninstall()
  2. 8.4 question_types/multichoice/multichoice.install \multichoice_uninstall()
  3. 8.5 question_types/quiz_multichoice/quiz_multichoice.install \multichoice_uninstall()
  4. 5.2 multichoice.install \multichoice_uninstall()
  5. 6.6 question_types/multichoice/multichoice.install \multichoice_uninstall()
  6. 6.2 multichoice.install \multichoice_uninstall()
  7. 6.3 question_types/multichoice/multichoice.install \multichoice_uninstall()
  8. 6.4 question_types/multichoice/multichoice.install \multichoice_uninstall()
  9. 6.5 question_types/multichoice/multichoice.install \multichoice_uninstall()
  10. 7.6 question_types/multichoice/multichoice.install \multichoice_uninstall()
  11. 7 question_types/multichoice/multichoice.install \multichoice_uninstall()
  12. 7.5 question_types/multichoice/multichoice.install \multichoice_uninstall()

Implements hook_uninstall().

File

question_types/multichoice/multichoice.install, line 223
Sponsored by: Norwegian Centre for Telemedicine Code: falcon

Code

function multichoice_uninstall() {

  // TODO The drupal_(un)install_schema functions are called automatically in D7.
  // drupal_uninstall_schema('multichoice')
  $var = array(
    'multichoice_def_scoring',
    'multichoice_def_num_of_alts',
  );
  foreach ($var as $v) {
    variable_del($v);
  }
  drupal_set_message(t("The multichoice module has been uninstalled. multichoice nodes may still exist, but they will not function properly."));
}