You are here

function views_update_6011 in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 views.install \views_update_6011()
  2. 7.3 views.install \views_update_6011()

Correct the cache setting for exposed filter blocks.

See also

http://drupal.org/node/910864

File

./views.install, line 485
views.install Contains install and update functions for Views.

Code

function views_update_6011() {
  $ret = array();

  // There is only one simple query to run.
  $ret[] = update_sql("UPDATE {blocks} SET cache = " . BLOCK_NO_CACHE . " WHERE module = 'views' AND delta LIKE '-exp-%'");
  return $ret;
}