diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-21 17:55:00 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-21 17:55:00 +0000 |
commit | 37658c5be7fa91fefeb7f49591692b91efc89298 (patch) | |
tree | 8205d4e2964c9faf2ef8f769a0a87e0356ea9d70 /mod/riverdashboard/start.php | |
parent | d7d2da2c7c4a6f24b6ef4389e4878d475ade6220 (diff) | |
download | elgg-37658c5be7fa91fefeb7f49591692b91efc89298.tar.gz elgg-37658c5be7fa91fefeb7f49591692b91efc89298.tar.bz2 |
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
Diffstat (limited to 'mod/riverdashboard/start.php')
-rw-r--r-- | mod/riverdashboard/start.php | 16 |
1 files changed, 16 insertions, 0 deletions
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');
|