simplemenu.install 528 B

1234567891011121314151617181920212223
  1. <?php
  2. // $Id$
  3. /**
  4. * Get rid of the variables used by simple menu.
  5. */
  6. function simplemenu_uninstall() {
  7. db_query("DELETE FROM {variable} WHERE name LIKE 'simplemenu_%'");
  8. }
  9. /**
  10. * Implementation of hook_update_N().
  11. */
  12. function simplemenu_update_6001() {
  13. // if navigation menu was used in Drupal 5 use the same in Drupal 6.
  14. // otherwise, we can't do anything.
  15. if (variable_get('simplemenu_menu', 1) == 1) {
  16. variable_set('simplemenu_menu', 'navigation:0');
  17. }
  18. return array();
  19. }
  20. // vim: ts=2 sw=2 et syntax=php