function node_gallery_api_get_last_item in Node Gallery 7
Gets the last image nid within a gallery.
Parameters
int $ngid: The nid of the gallery to query.
bool $reset: (optional) If TRUE, clears the cache, defaults to FALSE.
Return value
int The nid of the last image in the gallery.
1 call to node_gallery_api_get_last_item()
- node_gallery_api_get_item_navigator in ./
node_gallery_api.module - Builds an array with the data necessary to navigate a gallery.
File
- ./
node_gallery_api.inc, line 623 - Node Gallery API function
Code
function node_gallery_api_get_last_item($ngid, $reset = FALSE) {
$item_list = node_gallery_api_get_item_list($ngid, $reset);
return $item_list[count($item_list) - 1];
}