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

Contents of /contributions/modules/local_menu/local_menu.install

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


Revision 1.3 - (show annotations) (download) (as text)
Tue Jul 21 20:09:00 2009 UTC (4 months ago) by davereid
Branch: MAIN
CVS Tags: DRUPAL-6--1-6, HEAD
Changes since 1.2: +2 -2 lines
File MIME type: text/x-php
by Dave Reid: Coder fixes.
1 <?php
2 // $Id: local_menu.install,v 1.2 2009/07/21 19:43:48 davereid Exp $
3
4 /**
5 * Implementation of hook_uninstall().
6 */
7 function local_menu_uninstall() {
8 variable_del('local_menu_depth');
9 variable_del('lcoal_menu_start');
10 }
11
12 /**
13 * Add caching to the block.
14 */
15 function local_menu_update_1() {
16 $ret = array();
17 $ret[] = update_sql("UPDATE {blocks} SET cache = ". (BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_USER) ." WHERE module = 'local_menu'");
18 return $ret;
19 }

  ViewVC Help
Powered by ViewVC 1.1.2