aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/elements/responses.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-25 11:56:10 -0400
committercash <cash.costello@gmail.com>2011-06-25 11:56:10 -0400
commit8a6aca077a81b6cd654c1944b0a5e2498b1cc655 (patch)
treef529ff8dc1c4c799d25bb3064e91f1368931bc8f /views/default/river/elements/responses.php
parentdbf3edd887ee26b85d609481ea9ee247f3d46ac3 (diff)
downloadelgg-8a6aca077a81b6cd654c1944b0a5e2498b1cc655.tar.gz
elgg-8a6aca077a81b6cd654c1944b0a5e2498b1cc655.tar.bz2
added documentation to new river views and improved handling of responses
Diffstat (limited to 'views/default/river/elements/responses.php')
-rw-r--r--views/default/river/elements/responses.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/views/default/river/elements/responses.php b/views/default/river/elements/responses.php
index f1e79f131..8c5be6316 100644
--- a/views/default/river/elements/responses.php
+++ b/views/default/river/elements/responses.php
@@ -1,8 +1,18 @@
<?php
/**
* River item footer
+ *
+ * @uses $vars['item'] ElggRiverItem
+ * @uses $vars['responses'] Alternate override for this item
*/
+// allow river views to override the response content
+$responses = elgg_extract('responses', $vars, false);
+if ($responses) {
+ echo $responses;
+ return true;
+}
+
$item = $vars['item'];
$object = $item->getObjectEntity();