You are here

function panels_mini_update_6300 in Panels 6.3

Update all blocks to use 'name' as delta, not 'pid'.

File

panels_mini/panels_mini.install, line 130

Code

function panels_mini_update_6300() {
  $ret = array();
  $result = db_query("SELECT name, pid from {panels_mini}");
  while ($mini = db_fetch_object($result)) {
    db_query("UPDATE {blocks} SET delta = '%s' WHERE module = 'panels_mini' AND delta = %d", $mini->name, $mini->pid);
  }
  return $ret;
}