| 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 |
| 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 |