function imageeditor_uninstall in Image Editor 7
Implements hook_uninstall().
File
- ./
imageeditor.install, line 9
Code
function imageeditor_uninstall() {
// Removes all variables that start with "imageeditor_".
// It will also delete imageeditor_inline_* variables if any - and it is fine.
$results = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', 'imageeditor_%', 'LIKE')
->execute();
foreach ($results as $result) {
variable_del($result->name);
}
}