aboutsummaryrefslogtreecommitdiff
path: root/views/json/river/item.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-29 13:01:05 -0400
committercash <cash.costello@gmail.com>2011-10-29 13:01:05 -0400
commite01240611f2a94d0a194235f2f83323049ad1a74 (patch)
tree311afd784f4c3e4f99dbfe5a06123d3fefb2842a /views/json/river/item.php
parent96fa5ba183d4ea5fb01d4f5a44c808dcb3291b72 (diff)
downloadelgg-e01240611f2a94d0a194235f2f83323049ad1a74.tar.gz
elgg-e01240611f2a94d0a194235f2f83323049ad1a74.tar.bz2
Refs #3201 updates json river views and removed old search view
Diffstat (limited to 'views/json/river/item.php')
-rw-r--r--views/json/river/item.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/views/json/river/item.php b/views/json/river/item.php
new file mode 100644
index 000000000..64677817f
--- /dev/null
+++ b/views/json/river/item.php
@@ -0,0 +1,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'];