function system_update_6037 in Drupal 6
Create consistent empty region for disabled blocks.
Related topics
File
- 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;
}