You are here

function node_gallery_get_prev_image in Node Gallery 6.3

Gets the previous image in the gallery.

Parameters

$gid: The nid of the gallery node.

$nid: The nid of the image node.

$reset: (optional) If TRUE, the caches are cleared.

Return value

The nid of the previous image in the gallery.

1 call to node_gallery_get_prev_image()
node_gallery_get_image_navigator in ./node_gallery.inc
Builds an array with the data necessary to navigate a gallery.

File

./node_gallery.inc, line 646
Shared functions for node_gallery

Code

function node_gallery_get_prev_image($gid, $nid, $reset = FALSE) {
  return node_gallery_seek_from_current_image($gid, $nid, -1, $reset);
}