You are here

function node_gallery_update_6104 in Node Gallery 6

Implementation of hook_update_N() A gallery display type

File

./node_gallery.install, line 381
Node gallery install file.

Code

function node_gallery_update_6104() {
  $ret = array();
  $result = db_query("SELECT * FROM {ng_gallery_config} WHERE 1");
  while ($t = drupal_unpack(db_fetch_object($result))) {
    if (!empty($t)) {
      $relationship = new gallery_config($t);
      $relationship->gallery['image'] = 'node-gallery-thumbnail';
      unset($relationship->data);
      $relationship
        ->save();
    }
  }
  return $ret;
}