You are here

function image_attach_update_6101 in Image 6

Delete bad entry in {blocks} table due to old bug. Next visit to blocks admin page will rehash and show the block.

See also

<http://drupal.org/node/426724>

File

contrib/image_attach/image_attach.install, line 131

Code

function image_attach_update_6101() {
  $ret = array();
  $ret[] = update_sql("DELETE FROM {blocks} WHERE module = 'image_attach' AND delta = '0'");
  return $ret;
}