You are here

function nice_menus_update_6000 in Nice Menus 7.3

Same name and namespace in other branches
  1. 6.2 nice_menus.install \nice_menus_update_6000()
  2. 6 nice_menus.install \nice_menus_update_6000()
  3. 7.2 nice_menus.install \nice_menus_update_6000()

Implements hook_update_N().

File

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

Code

function nice_menus_update_6000() {

  // Existing blocks need to be set to no caching.
  $ret = array();

  /*
   * TODO update_sql has been removed. Use the database API for any
   * schema or data changes.
   * update_sql("UPDATE {block} SET cache = -1 WHERE module = 'nice_menus'").
   */
  $ret[] = array();

  /*
   * 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.');
}