system_update_6037

Versions
6
system_update_6037()

Create consistent empty region for disabled blocks.

Related topics

Code

modules/system/system.install, line 2269

<?php
function system_update_6037() {
  $ret = array();
  db_change_field($ret, 'blocks', 'region', 'region', array('type' => 'varchar', 'length' => 64, 'not null' => TRUE, 'default' => ''));
  $ret[] = update_sql("UPDATE {blocks} SET region = '' WHERE status = 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.