aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-20 22:06:07 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-20 22:06:07 +0000
commit556ca4a3f628fb9c6060c11cee8cb3cd332740d2 (patch)
treee453202e02d04c5f80f39b535d4d79a0cef36e77 /mod/riverdashboard
parent983038769541e74a04cc4a2063bb53b04cb89e23 (diff)
downloadelgg-556ca4a3f628fb9c6060c11cee8cb3cd332740d2.tar.gz
elgg-556ca4a3f628fb9c6060c11cee8cb3cd332740d2.tar.bz2
Removed toggle for overriding river dashboard. If the plugin is enabled, the dashboard is enabled.
git-svn-id: http://code.elgg.org/elgg/trunk@5821 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard')
-rw-r--r--mod/riverdashboard/start.php11
-rw-r--r--mod/riverdashboard/views/default/settings/riverdashboard/edit.php9
2 files changed, 4 insertions, 16 deletions
diff --git a/mod/riverdashboard/start.php b/mod/riverdashboard/start.php
index c57d88d80..b95c2654d 100644
--- a/mod/riverdashboard/start.php
+++ b/mod/riverdashboard/start.php
@@ -8,12 +8,9 @@
function riverdashboard_init() {
global $CONFIG;
// Register and optionally replace the dashboard
- if (get_plugin_setting('useasdashboard', 'riverdashboard') == 'yes') {
- register_page_handler('dashboard','riverdashboard_page_handler');
- } else {
- // Activity main menu
- add_menu(elgg_echo('activity'), $CONFIG->wwwroot . "mod/riverdashboard/");
- }
+ 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');
@@ -75,4 +72,4 @@ function riverdashboard_ecml_keywords_hook($hook, $type, $value, $params) {
return $value;
}
-register_elgg_event_handler('init', 'system', 'riverdashboard_init'); \ No newline at end of file
+register_elgg_event_handler('init', 'system', 'riverdashboard_init');
diff --git a/mod/riverdashboard/views/default/settings/riverdashboard/edit.php b/mod/riverdashboard/views/default/settings/riverdashboard/edit.php
deleted file mode 100644
index 1a581f96b..000000000
--- a/mod/riverdashboard/views/default/settings/riverdashboard/edit.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-?>
-<p>
- <?php echo elgg_echo('riverdashboard:useasdashboard'); ?>
- <select name="params[useasdashboard]">
- <option value="yes" <?php if ($vars['entity']->useasdashboard == 'yes') echo " selected=\"yes\" "; ?>><?php echo elgg_echo('option:yes'); ?></option>
- <option value="no" <?php if ($vars['entity']->useasdashboard != 'yes') echo " selected=\"yes\" "; ?>><?php echo elgg_echo('option:no'); ?></option>
- </select>
-</p> \ No newline at end of file