/[drupal]/contributions/modules/nice_menus/nice_menus.install
ViewVC logotype

Contents of /contributions/modules/nice_menus/nice_menus.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Tue Mar 24 16:22:28 2009 UTC (8 months ago) by add1sun
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +12 -1 lines
File MIME type: text/x-php
#322962: thanks to higherform and GiorgosK for testing. New feature to add configurable JS with Superfish.
1 <?php
2 // $Id: nice_menus.install,v 1.2 2008/12/04 00:42:49 add1sun Exp $
3
4 /**
5 * @file
6 * Update functions for Nice menus.
7 */
8
9 /**
10 * Implementation of hook_update_N().
11 */
12 function nice_menus_update_6000() {
13 // Existing blocks need to be set to no caching.
14 $ret = array();
15 $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'nice_menus'");
16 return $ret;
17 }
18
19 /**
20 * Implementation of 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 return array();
28 }

  ViewVC Help
Powered by ViewVC 1.1.2