You are here

function google_admanager_update_6100 in DFP Small Business (Google Ad Manager) 7.2

Same name and namespace in other branches
  1. 6.3 google_admanager.install \google_admanager_update_6100()
  2. 6 google_admanager.install \google_admanager_update_6100()
  3. 6.2 google_admanager.install \google_admanager_update_6100()

Update legacy blocks to use BLOCK_NO_CACHE cache mode, for compatibility with Drupal 6's block cache feature.

1 call to google_admanager_update_6100()
google_admanager_update_6101 in ./google_admanager.install
Rerun the previous update to force the BLOCK_NO_CACHE settings for blocks added subsequent to update 6100 but before changes in http://drupal.org/node/351214#comment-2254886 applied

File

./google_admanager.install, line 19
Install, update and uninstall functions for the google_admanager module.

Code

function google_admanager_update_6100() {
  $ret = array();
  $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'google_admanager'");
  return $ret;
}