aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views/rss/search/listing.php
blob: 92f6553b99458a17fb0345c6a3e1fc4d551e9c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Elgg core search.
 * Search listing view for RSS feeds.
 *
 * @package Elgg
 * @subpackage Core
 */

$entities = $vars['results']['entities'];

if (!is_array($entities) || !count($entities)) {
	return FALSE;
}

foreach ($entities as $entity) {
	if ($view = search_get_search_view($vars['params'], 'entity')) {
		$body .= elgg_view($view, array(
			'entity' => $entity,
			'params' => $vars['params'],
			'results' => $vars['results']
		));
	}
}

echo $body;