function units_default_uninstall in Units of Measurement 7
Same name and namespace in other branches
- 7.2 units_default/units_default.install \units_default_uninstall()
Implements hook_uninstall().
File
- units_default/
units_default.install, line 11 - Install, uninstall and update hooks of Units default module.
Code
function units_default_uninstall() {
$vars = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', db_like('units_default') . '%', 'LIKE')
->execute()
->fetchCol();
foreach ($vars as $var) {
variable_del($var);
}
}