You are here

function system_update_135 in Drupal 4

Same name and namespace in other branches
  1. 5 modules/system/system.install \system_update_135()

File

database/updates.inc, line 531

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();
}