/[drupal]/contributions/modules/faceted_search/faceted_search_ui.install
ViewVC logotype

Contents of /contributions/modules/faceted_search/faceted_search_ui.install

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


Revision 1.8 - (show annotations) (download) (as text)
Sat Jan 10 21:02:23 2009 UTC (10 months, 2 weeks ago) by davidlesieur
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA2, DRUPAL-6--1-0-BETA1, HEAD
Changes since 1.7: +14 -1 lines
File MIME type: text/x-php
#356873: Selected proper block cache strategies.
1 <?php
2 // $Id: faceted_search_ui.install,v 1.7 2008/08/26 04:28:10 davidlesieur Exp $
3
4 /**
5 * Implementation of hook_uninstall().
6 */
7 function faceted_search_ui_uninstall() {
8 db_query("DELETE FROM {blocks} WHERE module = 'faceted_search_ui'");
9 }
10
11 /**
12 * Update block caching strategies.
13 */
14 function faceted_search_ui_update_6000() {
15 $ret = array();
16 $ret[] = update_sql('UPDATE {blocks} SET cache = '. (BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_USER) ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_current'");
17 $ret[] = update_sql('UPDATE {blocks} SET cache = '. (BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_ROLE) ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_keyword'");
18 $ret[] = update_sql('UPDATE {blocks} SET cache = '. (BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_USER) ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_guided'");
19 $ret[] = update_sql('UPDATE {blocks} SET cache = '. (BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_USER) ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_related'");
20 $ret[] = update_sql('UPDATE {blocks} SET cache = '. BLOCK_CACHE_PER_PAGE ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_sort'");
21 cache_clear_all(NULL, 'cache_block');
22 return $ret;
23 }

  ViewVC Help
Powered by ViewVC 1.1.2