You are here

function messaging_uninstall in Messaging 5

Same name and namespace in other branches
  1. 6.4 messaging.install \messaging_uninstall()
  2. 6 messaging.install \messaging_uninstall()
  3. 6.2 messaging.install \messaging_uninstall()
  4. 6.3 messaging.install \messaging_uninstall()

Implementation of hook_uninstall().

File

./messaging.install, line 74

Code

function messaging_uninstall() {
  db_query("DROP TABLE {messaging_message_parts}");
  db_query("DROP TABLE {messaging_store}");

  // remove the default filter, plain text added in install
  $format = variable_get('messaging_default_filter', 0);
  if ($format) {
    db_query('DELETE FROM {filters} WHERE format = %d', $format);
    db_query('DELETE FROM {filter_formats} WHERE format = %d', $format);
  }
  variable_del('messaging_debug');
  variable_del('messaging_default_filter');
  variable_del('messaging_default_method');
  variable_del('messaging_log');
  variable_del('messaging_log_expire');
  variable_del('messaging_process_limit');
  db_query("DELETE FROM {variable} WHERE name LIKE 'messaging_method_%'");
}