Projet

Général

Profil

Paste
Télécharger (1,26 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / module_filter / module_filter.install @ 87dbc3bf

1
<?php
2

    
3
/**
4
 * @file
5
 */
6

    
7
/**
8
 * Implements hook_uninstall().
9
 */
10
function module_filter_uninstall() {
11
  variable_del('module_filter_set_focus');
12
  variable_del('module_filter_tabs');
13
  variable_del('module_filter_count_enabled');
14
  variable_del('module_filter_visual_aid');
15
  variable_del('module_filter_hide_empty_tabs');
16
  variable_del('module_filter_dynamic_save_position');
17
  variable_del('module_filter_use_url_fragment');
18
  variable_del('module_filter_use_switch');
19
  variable_del('module_filter_track_recent_modules');
20
  variable_del('module_filter_remember_active_tab');
21
  variable_del('module_filter_remember_update_state');
22
}
23

    
24
/**
25
 * Remove the 'module_filter_autocomplete' variable.
26
 */
27
function module_filter_update_7100() {
28
  variable_del('module_filter_autocomplete');
29
}
30

    
31
/**
32
 * Rebuild the menu and theme registry.
33
 */
34
function module_filter_update_7200() {
35
  menu_rebuild();
36
  system_rebuild_theme_data();
37
  drupal_theme_rebuild();
38
}
39

    
40
/**
41
 * Old update that use to remove the module_filter_dynamic_save_position variable.
42
 */
43
function module_filter_update_7201() {
44
  // We don't want to remove this update hook but at the same time we no
45
  // longer want to lose the variable setting, so we just comment it out.
46
  // variable_del('module_filter_dynamic_save_position');
47
}