function node_gallery_get_last_image in Node Gallery 6.3
Gets the last 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 last image in the gallery.
1 call to node_gallery_get_last_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 750 - Shared functions for node_gallery
Code
function node_gallery_get_last_image($gid, $reset = FALSE) {
$image_list = node_gallery_get_image_list($gid, $reset);
return $image_list[count($image_list) - 1];
}