From 689c997f58b25df81164df9acdf5ebd9c1ad2bc9 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 27 Jun 2008 11:16:45 +0000 Subject: Introducing elgg_view_listing git-svn-id: https://code.elgg.org/elgg/trunk@1169 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engine/lib') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index bd1f12448..166757ea4 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -462,6 +462,17 @@ } + /** + * Wrapper function to display search listings. + * + * @param string $icon The icon for the listing + * @param string $info Any information that needs to be displayed. + * @return string The HTML (etc) representing the listing + */ + function elgg_view_listing($icon, $info) { + return elgg_view('search/listing',array('icon' => $icon, 'info' => $info)); + } + /** * Sets an alternative function to handle templates, which will be passed to by elgg_view. * This function must take the $view and $vars parameters from elgg_view: -- cgit v1.2.3