aboutsummaryrefslogtreecommitdiff
path: root/mod/search/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-14 02:42:27 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-14 02:42:27 +0000
commit9c0a913909e0b560ce5e2723098e233601e86903 (patch)
tree9745d0f978b5d24203151d5082a955394830a52d /mod/search/start.php
parent7d8bff414d8e718db791e501bb9f993714b8b004 (diff)
downloadelgg-9c0a913909e0b560ce5e2723098e233601e86903.tar.gz
elgg-9c0a913909e0b560ce5e2723098e233601e86903.tar.bz2
Removed unnecessary view directories.
Added option of overriding the default layout for search queries. Updated documentation reflecting those changes. Clarified some points in the documentation. git-svn-id: http://code.elgg.org/elgg/trunk@3807 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/start.php')
-rw-r--r--mod/search/start.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/mod/search/start.php b/mod/search/start.php
index c54072b91..8e84a4144 100644
--- a/mod/search/start.php
+++ b/mod/search/start.php
@@ -321,13 +321,20 @@ function search_remove_ignored_words($query, $format = 'array') {
*
* @param array $results
* @param array $params
- * @param string $view_type = listing || entity
+ * @param string $view_type = listing, entity or listing
* @return string
*/
function search_get_search_view($params, $view_type) {
- if ($view_type != 'listing' && $view_type != 'entity') {
- return FALSE;
+ switch ($view_type) {
+ case 'listing':
+ case 'entity':
+ case 'layout':
+ break;
+
+ default:
+ return FALSE;
}
+
$view_order = array();
// check if there's a special search listing view for this type:subtype