aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/riverdashboard/start.php')
-rw-r--r--mod/riverdashboard/start.php70
1 files changed, 0 insertions, 70 deletions
diff --git a/mod/riverdashboard/start.php b/mod/riverdashboard/start.php
deleted file mode 100644
index 9f64f4c9d..000000000
--- a/mod/riverdashboard/start.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-/**
- * Elgg river dashboard plugin
- *
- * @package RiverDashboard
- */
-
-function riverdashboard_init() {
- global $CONFIG;
- // Register and optionally replace the dashboard
- register_page_handler('dashboard','riverdashboard_page_handler');
- add_menu(elgg_echo('activity'), $CONFIG->wwwroot . "mod/riverdashboard/");
-
- // Page handler
- register_page_handler('riverdashboard','riverdashboard_page_handler');
- elgg_extend_view('css','riverdashboard/css');
-
- // add an activity stream ECML keyword
- // we'll restrict it to use in sitepages's custom_frontpage
- register_plugin_hook('get_keywords', 'ecml', 'riverdashboard_ecml_keywords_hook');
-}
-
-/**
- * Page handler for riverdash
- *
- * @param unknown_type $page
- */
-function riverdashboard_page_handler($page){
- include(dirname(__FILE__) . "/index.php");
- return true;
-}
-
-/**
- * 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 activity keyword.
- *
- * @param unknown_type $hook
- * @param unknown_type $type
- * @param unknown_type $value
- * @param unknown_type $params
- * @return unknown_type
- */
-function riverdashboard_ecml_keywords_hook($hook, $type, $value, $params) {
- $value['activity'] = array(
- 'view' => "riverdashboard/ecml/activity",
- 'description' => elgg_echo('riverdashboard:ecml:desc:activity'),
- 'usage' => elgg_echo('riverdashboard:ecml:usage:activity'),
- 'restricted' => array('sitepages/custom_frontpage')
- );
-
- return $value;
-}
-
-register_elgg_event_handler('init', 'system', 'riverdashboard_init');