system_update_6047

Versions
6
system_update_6047()

Fix cache mode for blocks inserted in system_install() in fresh installs of previous RC.

Related topics

Code

modules/system/system.install, line 2527

<?php
function system_update_6047() {
  $ret = array();
  $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'user' AND delta IN ('0', '1')");
  $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'system' AND delta = '0'");
  return $ret;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.