function honeypot_uninstall in Honeypot 6
Same name and namespace in other branches
- 8 honeypot.install \honeypot_uninstall()
- 7 honeypot.install \honeypot_uninstall()
- 2.0.x honeypot.install \honeypot_uninstall()
Implementation of hook_uninstall().
File
- ./
honeypot.install, line 24 - Install, update and uninstall functions for the Honeypot module.
Code
function honeypot_uninstall() {
db_query("DELETE from {variable} WHERE name LIKE 'honeypot_%'");
$cache_tables = array(
'variables',
'cache_bootstrap',
);
foreach ($cache_tables as $table) {
if (db_table_exists($table)) {
cache_clear_all($table, 'cache');
}
}
// Remove tables.
drupal_uninstall_schema('honeypot');
}