function users_export_uninstall in Users Export 7.2
Same name and namespace in other branches
- 8 users_export.install \users_export_uninstall()
Implements hook_uninstall().
File
- ./
users_export.install, line 13 - Handles installation steps for users_export.
Code
function users_export_uninstall() {
$vars = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', 'users_export%', 'LIKE')
->execute()
->fetchCol();
foreach ($vars as $var) {
variable_del($var);
}
$tables = array(
'block',
'block_role',
);
foreach ($tables as $table) {
if (db_table_exists($table)) {
db_delete($table)
->condition('module', 'users_export')
->execute();
}
}
}