root/releases/0.1.1b/units/search/function_search_all_display.php

Revision 2, 0.6 kB (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     // Parse search query and send it to the search functions
4         
5         global $search_exclusions;
6         
7         if (isset($parameter)) {
8             
9             $tag = $parameter;
10             foreach($data['search:tagtypes'] as $tagtype) {
11                 
12                 if (!isset($search_exclusions) || !in_array($tagtype,$search_exclusions)) {
13                     $run_result .= run("search:display_results", array($tagtype,$tag));
14                 }
15                 
16             }
17             if ($tag != "ref" && $tag != "owner" && $tag != user_session_name) {
18                 $run_result .= run("search:tags:suggest",$tag);
19                 $run_result .= run("search:users:suggest",$tag);
20                 $run_result .= run("search:rss:suggest",$tag);
21             }
22             
23         }
24
25 ?>
Note: See TracBrowser for help on using the browser.