You are here

function nice_menus_update_6001 in Nice Menus 7.2

Same name and namespace in other branches
  1. 6.2 nice_menus.install \nice_menus_update_6001()
  2. 7.3 nice_menus.install \nice_menus_update_6001()

Implements hook_update_N().

File

./nice_menus.install, line 56
Update functions for Nice menus.

Code

function nice_menus_update_6001() {

  // Switch the JS toggle variable name.
  $old_setting = variable_get('nice_menus_ie', 1);
  variable_set('nice_menus_js', $old_setting);
  variable_del('nice_menus_ie');

  // hook_update_N() no longer returns a $ret array. Instead, return
  // nothing or a translated string indicating the update ran successfully.
  // See http://drupal.org/node/224333#update_sql.
  return t('TODO Add a descriptive string here to show in the UI.');
}