]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added documentation for the livesearch page handler
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 19 Feb 2011 03:54:35 +0000 (03:54 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 19 Feb 2011 03:54:35 +0000 (03:54 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8312 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/input.php

index 0d34db8aead62b232187ddeeb4a40d8e04338840..cbc1127727e18ce89f871de102e6fbc730d681cc 100644 (file)
@@ -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;