You are here

function flag_uninstall in Flag 6.2

Same name and namespace in other branches
  1. 5 flag.install \flag_uninstall()
  2. 6 flag.install \flag_uninstall()
  3. 7.3 flag.install \flag_uninstall()
  4. 7.2 flag.install \flag_uninstall()

Implements 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 30
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.'));
}