aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views/rss/search/listing.php
blob: 40aae018d51f75383a030c1b496fd60bd01ee01f (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
27
28
<?php
/**
 * Elgg core search.
 * Search listing view for RSS feeds.
 *
 * @package Elgg
 * @subpackage Core
 * @author Curverider Ltd <info@elgg.com>, The MITRE Corporation <http://www.mitre.org>
 * @link http://elgg.org/
 */

$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;