blob: 64677817fc3d4f7ede34bcc1c27bdf323d3e44c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
/**
* JSON river item view
*
* @uses $vars['item']
*/
global $jsonexport;
if (!isset($jsonexport['activity'])) {
$jsonexport['activity'] = array();
}
$item = $vars['item'];
if (elgg_view_exists($item->view, 'default')) {
$item->string = elgg_view('river/elements/summary', array('item' => $item), FALSE, FALSE, 'default');
}
$jsonexport['activity'][] = $vars['item'];
|