You are here

function spaces_uninstall in Spaces 6

Same name and namespace in other branches
  1. 5.2 spaces.install \spaces_uninstall()
  2. 6.3 spaces.install \spaces_uninstall()
  3. 6.2 spaces.install \spaces_uninstall()
  4. 7.3 spaces.install \spaces_uninstall()
  5. 7 spaces.install \spaces_uninstall()

Implementation of hook_uninstall()

File

./spaces.install, line 14

Code

function spaces_uninstall() {
  drupal_uninstall_schema('spaces');
  db_query("DELETE FROM {menu_custom} WHERE menu_name = 'spaces'");
  db_query("DELETE FROM {menu_links} WHERE module = 'spaces'");

  // Delete variables
  $variables = array();
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}