aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 11:16:45 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 11:16:45 +0000
commit689c997f58b25df81164df9acdf5ebd9c1ad2bc9 (patch)
treeed9e21ec733b56eef45fc7b314c38a3e6896d2df /engine/lib
parentb649c933a9cfbaf4909030d2f7454fea29086a3a (diff)
downloadelgg-689c997f58b25df81164df9acdf5ebd9c1ad2bc9.tar.gz
elgg-689c997f58b25df81164df9acdf5ebd9c1ad2bc9.tar.bz2
Introducing elgg_view_listing
git-svn-id: https://code.elgg.org/elgg/trunk@1169 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php11
1 files changed, 11 insertions, 0 deletions
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
@@ -463,6 +463,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:
*