You are here

function skinr_uninstall in Skinr 6.2

Same name and namespace in other branches
  1. 6 skinr.install \skinr_uninstall()
  2. 7.2 skinr.install \skinr_uninstall()

Implementation of hook_uninstall().

File

./skinr.install, line 181
skinr.install Contains install, update, and uninstall functions for Skinr.

Code

function skinr_uninstall() {

  // Uninstall table.
  drupal_uninstall_schema('skinr');

  // Remove all skinr variables.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'skinr_%'");
  while ($variable = db_fetch_object($result)) {
    variable_del($variable->name);
  }
}