diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-14 09:26:13 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-14 09:26:13 -0400 |
commit | 4a7b02539323ff74ebcc8f99b853a00ac4c00c1d (patch) | |
tree | a7a8d19502fda9d6b83cb7fc1bb3c14f448f0f6b /classes/TidypicsAlbum.php | |
parent | f6836700a311515c7a9a4fc6b77b50b1bd1f7fb2 (diff) | |
download | elgg-4a7b02539323ff74ebcc8f99b853a00ac4c00c1d.tar.gz elgg-4a7b02539323ff74ebcc8f99b853a00ac4c00c1d.tar.bz2 |
some cleanup
Diffstat (limited to 'classes/TidypicsAlbum.php')
-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; } |