-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfaceted_search_ui.install
executable file
·22 lines (20 loc) · 1.12 KB
/
faceted_search_ui.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* Implementation of hook_uninstall().
*/
function faceted_search_ui_uninstall() {
db_query("DELETE FROM {blocks} WHERE module = 'faceted_search_ui'");
}
/**
* Update block caching strategies.
*/
function faceted_search_ui_update_6000() {
$ret = array();
$ret[] = update_sql('UPDATE {blocks} SET cache = '. (BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_USER) ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_current'");
$ret[] = update_sql('UPDATE {blocks} SET cache = '. (BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_ROLE) ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_keyword'");
$ret[] = update_sql('UPDATE {blocks} SET cache = '. (BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_USER) ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_guided'");
$ret[] = update_sql('UPDATE {blocks} SET cache = '. (BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_USER) ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_related'");
$ret[] = update_sql('UPDATE {blocks} SET cache = '. BLOCK_CACHE_PER_PAGE ." WHERE module = 'faceted_search_ui' AND delta LIKE '%%_sort'");
cache_clear_all(NULL, 'cache_block');
return $ret;
}