You are here

function high_contrast_uninstall in High contrast 6

Same name and namespace in other branches
  1. 8 high_contrast.install \high_contrast_uninstall()
  2. 7 high_contrast.install \high_contrast_uninstall()

Implementation of hook_uninstall().

File

./high_contrast.install, line 28

Code

function high_contrast_uninstall() {

  //Delete session variables
  unset($_SESSION["high_contrast_activated"]);

  //Delete variables
  $result = db_query('SELECT name FROM {variable} WHERE name LIKE "high_contrast_%"');
  while ($row = db_fetch_object($result)) {
    variable_del($row->name);
  }
}