taxonomy_manager.install 689 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the Taxonomy Manager
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. */
  9. function taxonomy_manager_uninstall() {
  10. variable_del('taxonomy_manager_pager_tree_page_size');
  11. }
  12. /**
  13. * Implements hook_update_N().
  14. * Resets 'taxonomy_override_selector' variable.
  15. */
  16. function taxonomy_manager_update_7001() {
  17. // remove parent selector in core taxonomy term edit pages
  18. variable_set('taxonomy_override_selector', FALSE);
  19. return t('Successfully updated Taxonomy Manager settings.');
  20. }
  21. /**
  22. * Remove merge_redirect variable.
  23. */
  24. function taxonomy_manager_update_7002() {
  25. variable_del('taxonomy_manager_disable_merge_redirect');
  26. }