/[drupal]/contributions/modules/directory/directory.install
ViewVC logotype

Contents of /contributions/modules/directory/directory.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download) (as text)
Tue Sep 30 09:16:27 2008 UTC (13 months, 4 weeks ago) by augustin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +9 -8 lines
File MIME type: text/x-php
 * Fixed hook_uninsall() to cover all variable that may be set in the future.
  * update_6001() remove one obsolete variable.
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

  ViewVC Help
Powered by ViewVC 1.1.2