| 1 |
<?php
|
| 2 |
// $Id: directory.install,v 1.5 2008/08/13 12:25:42 augustin Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Removes variables when uninstalling the module.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Unset the variables that are not going to be used anymore.
|
| 11 |
* See: http://drupal.org/node/144958
|
| 12 |
*/
|
| 13 |
function directory_update_1() {
|
| 14 |
variable_del('directory_cat_res_count');
|
| 15 |
variable_del('directory_subcat_res_count');
|
| 16 |
return array();
|
| 17 |
}
|
| 18 |
|
| 19 |
/**
|
| 20 |
* Unset the variables that are not going to be used anymore.
|
| 21 |
* See: http://drupal.org/node/144958
|
| 22 |
*/
|
| 23 |
function directory_update_6000() {
|
| 24 |
variable_del('directory_no_nodes');
|
| 25 |
return array();
|
| 26 |
}
|
| 27 |
|
| 28 |
/**
|
| 29 |
* Unset the variables that are not going to be used anymore.
|
| 30 |
*/
|
| 31 |
function directory_update_6001() {
|
| 32 |
variable_del('directory_supported');
|
| 33 |
return array();
|
| 34 |
}
|
| 35 |
|
| 36 |
/**
|
| 37 |
* Implementation of hook_uninstall().
|
| 38 |
*/
|
| 39 |
function directory_uninstall() {
|
| 40 |
db_query("DELETE FROM {variable} WHERE name LIKE 'directory_%%'");
|
| 41 |
}
|
| 42 |
|