You are here

function image_gallery_update_1 in Image 5

Same name and namespace in other branches
  1. 5.2 contrib/image_gallery/image_gallery.install \image_gallery_update_1()
  2. 6 contrib/image_gallery/image_gallery.install \image_gallery_update_1()
  3. 7 contrib/image_gallery/image_gallery.install \image_gallery_update_1()

File

contrib/image_gallery/image_gallery.install, line 17

Code

function image_gallery_update_1() {
  $ret = array();
  if ($vid = variable_get('image_nav_vocabulary', '')) {
    $ret[] = update_sql("UPDATE {vocabulary} SET module='image_gallery' WHERE vid=" . (int) $vid);
  }
  else {
    $ret[] = update_sql("UPDATE {vocabulary} SET module='image_gallery' WHERE module='image'");
  }
  return $ret;
}