From 37658c5be7fa91fefeb7f49591692b91efc89298 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 21 Mar 2010 17:55:00 +0000 Subject: the beginnings of a mechanism to comment on river objects git-svn-id: http://code.elgg.org/elgg/trunk@5463 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/riverdashboard/start.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'mod/riverdashboard/start.php') diff --git a/mod/riverdashboard/start.php b/mod/riverdashboard/start.php index c093f5ecb..6badd8393 100644 --- a/mod/riverdashboard/start.php +++ b/mod/riverdashboard/start.php @@ -32,4 +32,20 @@ function riverdashboard_dashboard() { include(dirname(__FILE__) . '/index.php'); } +/** + * For users to make a comment on a river item + * + * @param ElggEntity $entity The entity to comment on + * @return string|false The HTML (etc) for the comment form, or false on failure + */ +function elgg_make_river_comment($entity){ + if (!($entity instanceof ElggEntity)) { + return false; + } else { + //display the comment form + $comments = elgg_view('riverdashboard/rivercomment',array('entity' => $entity)); + return $comments; + } +} + register_elgg_event_handler('init','system','riverdashboard_init'); -- cgit v1.2.3