From f24c8f66ea9673d812c882dd7db6fbe49bd01dfb Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 20 May 2009 16:49:06 +0000 Subject: Move the first-admin-login steps out of the user module and into an event listener in core --- core/helpers/core_event.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/helpers') diff --git a/core/helpers/core_event.php b/core/helpers/core_event.php index 5f13959a..c9e4e743 100644 --- a/core/helpers/core_event.php +++ b/core/helpers/core_event.php @@ -59,4 +59,13 @@ class core_event_Core { $event_parms->panes[] = array("label" => t("Sort Order"), "content" => $sortPane); } } + + static function user_login($user) { + // If this user is an admin, check to see if there are any post-install tasks that we need + // to run and take care of those now. + if ($user->admin && module::get_var("core", "choose_default_tookit", null)) { + graphics::choose_default_toolkit(); + module::clear_var("core", "choose_default_tookit"); + } + } } -- cgit v1.2.3