You are here

function node_gallery_inherit_group_settings in Node Gallery 6.3

1 call to node_gallery_inherit_group_settings()
node_gallery_nodeapi in ./node_gallery.module
Implements hook_nodeapi().

File

./node_gallery.module, line 1416
Node gallery module file.

Code

function node_gallery_inherit_group_settings(&$image) {

  // inherit organic group settings from gallery
  $gallery_node = node_load($image->gid);
  foreach ($gallery_node as $k => $v) {
    if (preg_match('/^og_/', $k)) {
      $image->{$k} = $v;
    }
  }
}