function flag_uninstall in Flag 7.3
Same name and namespace in other branches
- 5 flag.install \flag_uninstall()
- 6.2 flag.install \flag_uninstall()
- 6 flag.install \flag_uninstall()
- 7.2 flag.install \flag_uninstall()
Implements hook_uninstall().
File
- ./
flag.install, line 215 - Flag module install/schema/update hooks.
Code
function flag_uninstall() {
$result = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', 'flag_%', 'LIKE')
->execute();
foreach ($result as $row) {
variable_del($row->name);
}
drupal_set_message(t('Flag has been uninstalled.'));
}