diff options
author | cash <cash.costello@gmail.com> | 2011-06-25 11:56:10 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-06-25 11:56:10 -0400 |
commit | 8a6aca077a81b6cd654c1944b0a5e2498b1cc655 (patch) | |
tree | f529ff8dc1c4c799d25bb3064e91f1368931bc8f /views/default/river/elements/responses.php | |
parent | dbf3edd887ee26b85d609481ea9ee247f3d46ac3 (diff) | |
download | elgg-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.php | 10 |
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(); |