function system_update_135 in Drupal 5
Same name and namespace in other branches
- 4 database/updates.inc \system_update_135()
File
- modules/
system/ system.install, line 1641
Code
function system_update_135() {
if (!variable_get('update_135_done', FALSE)) {
$result = db_query("SELECT delta FROM {blocks} WHERE module = 'aggregator'");
while ($block = db_fetch_object($result)) {
list($type, $id) = explode(':', $block->delta);
db_query("UPDATE {blocks} SET delta = '%s' WHERE module = 'aggregator' AND delta = '%s'", $type . '-' . $id, $block->delta);
}
variable_del('update_135_done');
}
return array();
}