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 |
Jump to:
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
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
This is now in 5.x-1.10.
#3
Automatically closed -- issue fixed for two weeks with no activity.