You are here

function long_answer_uninstall in Quiz 7.4

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

Implements hook_uninstall().

File

question_types/long_answer/long_answer.install, line 24
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.
  cache_clear_all('variables', 'cache');
  drupal_set_message(t('The Long Answer module has been uninstalled and related data has been deleted.'));
}