diff options
author | Sem <sembrestels@riseup.net> | 2012-11-22 17:13:14 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-11-22 17:13:14 +0100 |
commit | 65b76e76643c47215b307866b6803004e1b41577 (patch) | |
tree | b981beebcaf34ba42105fc0873639cc9be070b9c | |
parent | fa825c5d41abf52153c50137d31dfc086c9f154d (diff) | |
download | elgg-65b76e76643c47215b307866b6803004e1b41577.tar.gz elgg-65b76e76643c47215b307866b6803004e1b41577.tar.bz2 |
Forward to dashboard when login.
-rw-r--r-- | start.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,6 +1,12 @@ <?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'); } |