function node_gallery_api_get_item_count in Node Gallery 7
Gets the count of published images 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 A count of all images in the gallery.
1 call to node_gallery_api_get_item_count()
- 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 148 - Node Gallery API function
Code
function node_gallery_api_get_item_count($ngid, $reset = FALSE) {
return count(node_gallery_api_get_item_list($ngid, $reset));
}