You are here

function node_gallery_get_first_image in Node Gallery 6.3

Gets the first image nid within a gallery.

Parameters

$gid: The nid of the gallery to query.

$reset: (optional) If TRUE, clears the cache, defaults to FALSE.

Return value

The nid of the first image in the gallery.

2 calls to node_gallery_get_first_image()
node_gallery_browse_images in ./node_gallery.pages.inc
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 735
Shared functions for node_gallery

Code

function node_gallery_get_first_image($gid, $reset = FALSE) {
  $image_list = node_gallery_get_image_list($gid, $reset);
  return $image_list[0];
}