Uninstall hook to delete variables.

NancyDru - September 29, 2008 - 22:56
Project:Taxonomy Super Select
Version:5.x-1.5-1
Component:Code
Category:feature request
Priority:minor
Assigned:NancyDru
Status:closed
Description

/**
* Implementation of hook_uninstall().
*/
function taxonomy_super_select_install() {
  // Delete our variables.
  $result = db_query("SELECT vid FROM {vocabulary}");
  while ($vid = db_result($result)) {
    variable_del('taxonomy_super_select_vid_'. $vid);
  }
}

#1

NancyDru - September 29, 2008 - 22:57

Oops, typed it wrong.

/**
* Implementation of hook_uninstall().
*/
function taxonomy_super_select_uninstall() {
  // Delete our variables.
  $result = db_query("SELECT vid FROM {vocabulary}");
  while ($vid = db_result($result)) {
    variable_del('taxonomy_super_select_vid_'. $vid);
  }
}

#2

NancyDru - September 30, 2008 - 13:13
Status:needs review» fixed

This is now in 5.x-1.10.

#3

Anonymous (not verified) - October 14, 2008 - 13:15
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.