You are here

function jquery_ui_multiselect_widget_uninstall in jQuery UI MultiSelect Widget 7

Implements hook_uninstall().

File

./jquery_ui_multiselect_widget.install, line 30
Installation functions for jQuery UI MultiSelect Widget.

Code

function jquery_ui_multiselect_widget_uninstall() {

  // Remove the general settings.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'jquery_ui_multiselect_widget_%'");

  // Exclude variables here!!
  $exclude = array();
  while ($var_name = $result
    ->fetchAssoc()) {
    if (!in_array($var_name['name'], $exclude)) {
      variable_del($var_name['name']);
    }
  }
}