diff options
Diffstat (limited to 'mod/search/views/rss/search/listing.php')
-rw-r--r-- | mod/search/views/rss/search/listing.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mod/search/views/rss/search/listing.php b/mod/search/views/rss/search/listing.php new file mode 100644 index 000000000..40aae018d --- /dev/null +++ b/mod/search/views/rss/search/listing.php @@ -0,0 +1,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;
\ No newline at end of file |