aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/views/default/river/object
diff options
context:
space:
mode:
Diffstat (limited to 'mod/messageboard/views/default/river/object')
-rw-r--r--mod/messageboard/views/default/river/object/messageboard/create.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/messageboard/views/default/river/object/messageboard/create.php b/mod/messageboard/views/default/river/object/messageboard/create.php
new file mode 100644
index 000000000..ac10a55c1
--- /dev/null
+++ b/mod/messageboard/views/default/river/object/messageboard/create.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Messageboard river view
+ */
+
+$messageboard = $vars['item']->getAnnotation();
+$excerpt = elgg_get_excerpt($messageboard->value);
+
+echo elgg_view('river/elements/layout', array(
+ 'item' => $vars['item'],
+ 'message' => $excerpt,
+));