You are here

function node_gallery_change_gallery_action in Node Gallery 6.3

Changes the gallery of an image node.

Parameters

object $node:

$context:

File

./node_gallery.actions.inc, line 158
Contains all actions for node gallery.

Code

function node_gallery_change_gallery_action(&$node, $context = array()) {
  if (in_array($node->type, (array) node_gallery_get_types('image'))) {
    $node->newgid = $context['gallerynid'];
    $node->oldgid = $node->gid;
    $node->gid = $context['gallerynid'];
  }
}