diff options
Diffstat (limited to 'lib/tidypics.php')
-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); +} |