From 4a7b02539323ff74ebcc8f99b853a00ac4c00c1d Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 14 Jul 2012 09:26:13 -0400 Subject: some cleanup --- classes/TidypicsAlbum.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'classes/TidypicsAlbum.php') 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; } -- cgit v1.2.3