module_filter.install 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * @file
  4. */
  5. /**
  6. * Implements hook_uninstall().
  7. */
  8. function module_filter_uninstall() {
  9. variable_del('module_filter_set_focus');
  10. variable_del('module_filter_tabs');
  11. variable_del('module_filter_count_enabled');
  12. variable_del('module_filter_visual_aid');
  13. variable_del('module_filter_hide_empty_tabs');
  14. variable_del('module_filter_dynamic_save_position');
  15. variable_del('module_filter_use_url_fragment');
  16. variable_del('module_filter_use_switch');
  17. variable_del('module_filter_track_recent_modules');
  18. variable_del('module_filter_remember_active_tab');
  19. variable_del('module_filter_remember_update_state');
  20. }
  21. /**
  22. * Remove the 'module_filter_autocomplete' variable.
  23. */
  24. function module_filter_update_7100() {
  25. variable_del('module_filter_autocomplete');
  26. }
  27. /**
  28. * Rebuild the menu and theme registry.
  29. */
  30. function module_filter_update_7200() {
  31. menu_rebuild();
  32. system_rebuild_theme_data();
  33. drupal_theme_rebuild();
  34. }
  35. /**
  36. * Old update that use to remove the module_filter_dynamic_save_position variable.
  37. */
  38. function module_filter_update_7201() {
  39. // We don't want to remove this update hook but at the same time we no
  40. // longer want to lose the variable setting, so we just comment it out.
  41. // variable_del('module_filter_dynamic_save_position');
  42. }