You are here

function node_gallery_get_image_count in Node Gallery 6.3

Gets the count of published images within a gallery.

Parameters

$gid: The nid of the gallery to query.

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

Return value

A count of all images in the gallery.

3 calls to node_gallery_get_image_count()
node_gallery_create_gallery_redirect_submit in ./node_gallery.module
node_gallery_form_node_delete_confirm_alter in ./node_gallery.module
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 686
Shared functions for node_gallery

Code

function node_gallery_get_image_count($gid, $reset = FALSE) {
  $image_list = node_gallery_get_image_list($gid, $reset);
  return count($image_list);
}