function flag_uninstall in Flag 6
Same name and namespace in other branches
- 5 flag.install \flag_uninstall()
- 6.2 flag.install \flag_uninstall()
- 7.3 flag.install \flag_uninstall()
- 7.2 flag.install \flag_uninstall()
Implementation of hook_uninstall().
1 call to flag_uninstall()
- flag_views_bookmark_update_prepare in includes/
flag.views_bookmark.inc - Prepare for the Views Bookmark to Flag migration.
File
- ./
flag.install, line 62 - Flag module install/schema/update hooks.
Code
function flag_uninstall() {
drupal_uninstall_schema('flag');
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'flag_%'");
while ($row = db_fetch_object($result)) {
variable_del($row->name);
}
drupal_set_message(t('Flag has been uninstalled.'));
}