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 |
85ad3d82
|
Assos Assos
|
}
|
23 |
|
|
|
24 |
|
|
/**
|
25 |
|
|
* Remove the 'module_filter_autocomplete' variable.
|
26 |
|
|
*/
|
27 |
|
|
function module_filter_update_7100() {
|
28 |
|
|
variable_del('module_filter_autocomplete');
|
29 |
|
|
}
|
30 |
8a7e43dd
|
Florent Torregrosa
|
|
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 |
|
|
} |