function node_gallery_api_get_first_item in Node Gallery 7
Gets the first 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 first image in the gallery.
2 calls to node_gallery_api_get_first_item()
- node_gallery_api_browse_items in ./
node_gallery_api.pages.inc - Redirect to first item in the gallery.
- 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 607 - Node Gallery API function
Code
function node_gallery_api_get_first_item($ngid, $reset = FALSE) {
$item_list = node_gallery_api_get_item_list($ngid, $reset);
return $item_list[0];
}