units_default.install in Units of Measurement 7
Same filename and directory in other branches
Install, uninstall and update hooks of Units default module.
File
units_default/units_default.installView source
<?php
/**
* @file
* Install, uninstall and update hooks of Units default module.
*/
/**
* Implements hook_uninstall().
*/
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);
}
}
Functions
Name | Description |
---|---|
units_default_uninstall | Implements hook_uninstall(). |