You are here

function node_gallery_update_6302 in Node Gallery 6.3

Set a default navigator sort view

File

./node_gallery.install, line 836
Install, update and uninstall functions for the node_gallery module.

Code

function node_gallery_update_6302() {
  $ret = array();

  // Set our default navigator sort view
  $defaults = node_gallery_relationship_settings_defaults();
  foreach (node_gallery_get_all_relationships() as $rel) {
    $rel['settings']['view_navigator_image_display'] = $defaults['view_navigator_image_display'];
    $r = (object) $rel;
    drupal_write_record('node_gallery_relationships', $r, 'rid');
  }
  cache_clear_all();
  return $ret;
}