Projet

Général

Profil

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

root / drupal7 / sites / all / modules / module_filter / module_filter.install @ 18596a08

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
  variable_del('module_filter_version_column');
23
  variable_del('module_filter_expanded_description');
24
}
25

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

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

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