nice_menus.install 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @file
  4. * Update functions for Nice menus.
  5. */
  6. /**
  7. * Implements hook_update_N().
  8. */
  9. function nice_menus_update_6000() {
  10. // Existing blocks need to be set to no caching.
  11. $ret = array();
  12. // TODO update_sql has been removed. Use the database API for any schema or data changes.
  13. $ret[] = array() /* update_sql("UPDATE {block} SET cache = -1 WHERE module = 'nice_menus'") */;
  14. // hook_update_N() no longer returns a $ret array. Instead, return
  15. // nothing or a translated string indicating the update ran successfully.
  16. // See http://drupal.org/node/224333#update_sql.
  17. return t('TODO Add a descriptive string here to show in the UI.') /* $ret */;
  18. }
  19. /**
  20. * Implements hook_update_N().
  21. */
  22. function nice_menus_update_6001() {
  23. // Switch the JS toggle variable name.
  24. $old_setting = variable_get('nice_menus_ie', 1);
  25. variable_set('nice_menus_js', $old_setting);
  26. variable_del('nice_menus_ie');
  27. // hook_update_N() no longer returns a $ret array. Instead, return
  28. // nothing or a translated string indicating the update ran successfully.
  29. // See http://drupal.org/node/224333#update_sql.
  30. return t('TODO Add a descriptive string here to show in the UI.') /* array() */;
  31. }