function term_merge_uninstall in Term Merge 7
Implements hook_uninstall().
File
- ./
term_merge.install, line 11 - Install, uninstall, and update hooks of the module.
Code
function term_merge_uninstall() {
// Cleaning all variables.
$results = db_select('variable', 'var')
->fields('var', array(
'name',
))
->condition('var.name', db_like('term_merge_') . '%', 'LIKE')
->execute();
foreach ($results as $var) {
variable_del($var->name);
}
}