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 @ 31a5a6d6

1 85ad3d82 Assos Assos
<?php
2
3
/**
4
 * @file
5
 */
6
7
/**
8 8a7e43dd Florent Torregrosa
 * Implements hook_uninstall().
9 85ad3d82 Assos Assos
 */
10
function module_filter_uninstall() {
11 8a7e43dd Florent Torregrosa
  variable_del('module_filter_set_focus');
12 85ad3d82 Assos Assos
  variable_del('module_filter_tabs');
13
  variable_del('module_filter_count_enabled');
14
  variable_del('module_filter_visual_aid');
15 8a7e43dd Florent Torregrosa
  variable_del('module_filter_hide_empty_tabs');
16 85ad3d82 Assos Assos
  variable_del('module_filter_dynamic_save_position');
17 8a7e43dd Florent Torregrosa
  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 18596a08 Assos Assos
  variable_del('module_filter_version_column');
23
  variable_del('module_filter_expanded_description');
24 85ad3d82 Assos Assos
}
25
26
/**
27
 * Remove the 'module_filter_autocomplete' variable.
28
 */
29
function module_filter_update_7100() {
30
  variable_del('module_filter_autocomplete');
31
}
32 8a7e43dd Florent Torregrosa
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
}