function node_gallery_api_get_prev_item in Node Gallery 7
Gets the previous image in the gallery.
Parameters
int $ngid: The nid of the gallery node.
int $nid: The nid of the image node.
bool $reset: (optional) If TRUE, the caches are cleared.
Return value
int The nid of the previous image in the gallery.
1 call to node_gallery_api_get_prev_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 658 - Node Gallery API function
Code
function node_gallery_api_get_prev_item($ngid, $nid, $reset = FALSE) {
return node_gallery_api_seek_from_current_item($ngid, $nid, -1, $reset);
}