You are here

function long_answer_uninstall in Quiz 8.4

Same name and namespace in other branches
  1. 6.6 question_types/long_answer/long_answer.install \long_answer_uninstall()
  2. 6.3 question_types/long_answer/long_answer.install \long_answer_uninstall()
  3. 6.4 question_types/long_answer/long_answer.install \long_answer_uninstall()
  4. 6.5 question_types/long_answer/long_answer.install \long_answer_uninstall()
  5. 7 question_types/long_answer/long_answer.install \long_answer_uninstall()
  6. 7.4 question_types/long_answer/long_answer.install \long_answer_uninstall()

Implements hook_uninstall().

File

question_types/long_answer/long_answer.install, line 21
Long answer questions.

Code

function long_answer_uninstall() {

  // Delete tables
  // TODO The drupal_(un)install_schema functions are called automatically in D7.
  // drupal_uninstall_schema('long_answer')
  // Delete data from other tables
  // Clear the cache.
  entity_info_cache_clear();
  drupal_set_message(t('The Long Answer module has been uninstalled and related data has been deleted.'));
}