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

Diff of /contributions/modules/taxonomy_menu/taxonomy_menu.install

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

revision 1.2.2.1.2.3, Sun Feb 22 18:38:02 2009 UTC revision 1.2.2.1.2.4, Sun Mar 1 04:02:18 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: taxonomy_menu.install,v 1.2.2.1.2.2 2009/02/14 22:04:05 indytechcook Exp $  // $Id: taxonomy_menu.install,v 1.2.2.1.2.3 2009/02/22 18:38:02 indytechcook Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 18  function taxonomy_menu_uninstall() { Line 18  function taxonomy_menu_uninstall() {
18    variable_set('menu_rebuild_needed', TRUE);    variable_set('menu_rebuild_needed', TRUE);
19    
20    // Delete variables    // Delete variables
21    foreach (taxonomy_get_vocabularies() as $vocabulary) {    $variables = db_query('SELECT * from variable');
22      variable_del('taxonomy_menu_sync_'. $vocabulary->vid);    while ($variable = db_fetch_object($variables)) {
23      variable_del('taxonomy_menu_voc_item_'. $vocabulary->vid);      if (strpos($variable->name, 'taxonomy_menu') !== FALSE) {
24      variable_del('taxonomy_menu_display_num_'. $vocabulary->vid);        variable_del($variable->name);
25      variable_del('taxonomy_menu_expanded_'. $vocabulary->vid);      }
     variable_del('taxonomy_menu_path_'. $vocabulary->vid);  
     variable_del('taxonomy_menu_token_term_path_'. $vocabulary->vid);  
     variable_del('taxonomy_menu_token_vocab_path_'. $vocabulary->vid);  
     variable_del('taxonomy_menu_hide_empty_terms_'. $vocabulary->vid);  
     variable_del('taxonomy_menu_vocab_'. $vocabulary->vid);  
26    }    }
27    
28    // remove table    // remove table

Legend:
Removed from v.1.2.2.1.2.3  
changed lines
  Added in v.1.2.2.1.2.4

  ViewVC Help
Powered by ViewVC 1.1.2