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