diff options
author | Sem <sembrestels@riseup.net> | 2013-11-09 16:29:14 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-11-09 16:29:14 +0100 |
commit | dee4ff21a5a5e8b8c5dbeae0a2f89a36a3f1c6cc (patch) | |
tree | 88864dd5d5428d68efc677caa2ee0ef8a88adc73 /mod/profile_widgets/start.php | |
parent | 536ad685d02d6721671237bc6e6f5a04334419ac (diff) | |
parent | a81819e6399907420e67aabe93f5ac5eee8bac5f (diff) | |
download | elgg-dee4ff21a5a5e8b8c5dbeae0a2f89a36a3f1c6cc.tar.gz elgg-dee4ff21a5a5e8b8c5dbeae0a2f89a36a3f1c6cc.tar.bz2 |
Add 'mod/profile_widgets/' from commit 'a81819e6399907420e67aabe93f5ac5eee8bac5f'
git-subtree-dir: mod/profile_widgets
git-subtree-mainline: 536ad685d02d6721671237bc6e6f5a04334419ac
git-subtree-split: a81819e6399907420e67aabe93f5ac5eee8bac5f
Diffstat (limited to 'mod/profile_widgets/start.php')
-rw-r--r-- | mod/profile_widgets/start.php | 13 |
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'); |