aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorEvan Winslow <evan@elgg.org>2011-06-13 22:23:09 -0700
committerEvan Winslow <evan@elgg.org>2011-06-13 22:23:09 -0700
commitb766230d132bedf68ec3c63f72538fefa54c62e2 (patch)
tree8c3c03a7006426dd0a85ce2e52ed8b309bcd7e12 /mod
parentdea90f2e6af72473e24e5e67b154754faf84513e (diff)
downloadelgg-b766230d132bedf68ec3c63f72538fefa54c62e2.tar.gz
elgg-b766230d132bedf68ec3c63f72538fefa54c62e2.tar.bz2
Renamed river footer to a more semantic "responses". Fixed discussion
to work inline again with this new layout.
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/start.php3
-rw-r--r--mod/groups/views/default/river/object/groupforumtopic/create.php7
2 files changed, 2 insertions, 8 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 73bdd08a9..5aaba017c 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -621,7 +621,8 @@ function discussion_init() {
// commenting not allowed on discussion topics (use a different annotation)
elgg_register_plugin_hook_handler('permissions_check:comment', 'object', 'discussion_comment_override');
-
+ elgg_extend_view('river/elements/responses', 'discussion/river');
+
$action_base = elgg_get_plugins_path() . 'groups/actions/discussion';
elgg_register_action('discussion/save', "$action_base/save.php");
elgg_register_action('discussion/delete', "$action_base/delete.php");
diff --git a/mod/groups/views/default/river/object/groupforumtopic/create.php b/mod/groups/views/default/river/object/groupforumtopic/create.php
index cca44e523..f92e54a5c 100644
--- a/mod/groups/views/default/river/object/groupforumtopic/create.php
+++ b/mod/groups/views/default/river/object/groupforumtopic/create.php
@@ -11,10 +11,3 @@ echo elgg_view('river/item', array(
'item' => $vars['item'],
'message' => $excerpt,
));
-
-if (elgg_is_logged_in() && $object->canAnnotate(0, 'group_topic_post')) {
- // inline comment form
- $form_vars = array('id' => "groups-reply-{$object->getGUID()}", 'class' => 'hidden');
- $body_vars = array('entity' => $object, 'inline' => true);
- echo elgg_view_form('discussion/reply/save', $form_vars, $body_vars);
-}