function system_update_6037
6.x system.install | system_update_6037() |
Create consistent empty region for disabled blocks.
Related topics
File
- drupal-6.x/
modules/ system/ system.install, line 2337
Code
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;
}