function messaging_uninstall in Messaging 6.2
Same name and namespace in other branches
- 5 messaging.install \messaging_uninstall()
- 6.4 messaging.install \messaging_uninstall()
- 6 messaging.install \messaging_uninstall()
- 6.3 messaging.install \messaging_uninstall()
Implementation of hook_uninstall().
File
- ./
messaging.install, line 143
Code
function messaging_uninstall() {
// Remove tables.
drupal_uninstall_schema('messaging');
// Remove the default filter, plain text added in install
if ($format = variable_get('messaging_default_filter', 0)) {
db_query('DELETE FROM {filters} WHERE format = %d', $format);
db_query('DELETE FROM {filter_formats} WHERE format = %d', $format);
}
// Remove variables
variable_del('messaging_debug');
variable_del('messaging_default_filter');
variable_del('messaging_default_method');
variable_del('messaging_log');
variable_del('messaging_process_limit');
db_query("DELETE FROM {variable} WHERE name LIKE 'messaging_method_%'");
}