aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 03:54:35 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 03:54:35 +0000
commitb5e2bf119e91ec16b9df6eb35ff58b13390fecef (patch)
treee9b51eaa4a9ae400a0f91371b83b6c0a43707695
parent80159778b15966a99ddd44049a92d0ee68782777 (diff)
downloadelgg-b5e2bf119e91ec16b9df6eb35ff58b13390fecef.tar.gz
elgg-b5e2bf119e91ec16b9df6eb35ff58b13390fecef.tar.bz2
added documentation for the livesearch page handler
git-svn-id: http://code.elgg.org/elgg/trunk@8312 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/input.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/engine/lib/input.php b/engine/lib/input.php
index 0d34db8ae..cbc112772 100644
--- a/engine/lib/input.php
+++ b/engine/lib/input.php
@@ -197,9 +197,14 @@ function elgg_clear_sticky_value($form_name, $variable) {
/**
* Page handler for autocomplete endpoint.
*
- * @param array $page Pages array
+ * /pg/livesearch/?q=<query>
*
- * @return unknown_type
+ * Other options include:
+ * match_on string all|array(groups|users|friends|subtype)
+ * match_owner int 0/1
+ * limit int default is 10
+ *
+ * @return string JSON string is returned and then exit
*/
function input_livesearch_page_handler($page) {
global $CONFIG;