diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/TidypicsAlbum.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/TidypicsAlbum.php b/classes/TidypicsAlbum.php index 3133cbb7a..e36b28488 100644 --- a/classes/TidypicsAlbum.php +++ b/classes/TidypicsAlbum.php @@ -294,6 +294,12 @@ class TidypicsAlbum extends ElggObject { return get_entity($imageList[$key]); } + /** + * Get the index into the album for a particular image + * + * @param int $guid GUID of the image + * @return int + */ public function getIndex($guid) { return array_search($guid, $this->getImageList()) + 1; } |