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 /lib | |
parent | f6836700a311515c7a9a4fc6b77b50b1bd1f7fb2 (diff) | |
download | elgg-4a7b02539323ff74ebcc8f99b853a00ac4c00c1d.tar.gz elgg-4a7b02539323ff74ebcc8f99b853a00ac4c00c1d.tar.bz2 |
some cleanup
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tidypics.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/tidypics.php b/lib/tidypics.php index 77a8787f6..9439bed39 100644 --- a/lib/tidypics.php +++ b/lib/tidypics.php @@ -395,3 +395,14 @@ function tp_get_tag_list($viewer) { return $friend_list; } + +/** + * Convenience function for listing recent images + * + * @param int $max + * @param bool $pagination + * @return string + */ +function tp_mostrecentimages($max = 8, $pagination = true) { + return list_entities("object", "image", 0, $max, false, false, $pagination); +} |