aboutsummaryrefslogtreecommitdiff
path: root/mod/profile_widgets/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile_widgets/start.php')
-rw-r--r--mod/profile_widgets/start.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/profile_widgets/start.php b/mod/profile_widgets/start.php
new file mode 100644
index 000000000..47343f273
--- /dev/null
+++ b/mod/profile_widgets/start.php
@@ -0,0 +1,13 @@
+<?php
+
+function profile_widgets_init() {
+
+ // Set dashboard as default page after login
+ if (elgg_is_active_plugin('dashboard') && !isset($_SESSION['last_forward_from'])) {
+ $_SESSION['last_forward_from'] = 'dashboard';
+ }
+
+ elgg_register_widget_type('thewirewrite', elgg_echo('thewire:add'), elgg_echo("thewire:yourdesc:write:desc"), 'dashboard');
+}
+
+elgg_register_event_handler('init', 'system', 'profile_widgets_init');