From 026af5df34694c8ca5c3708f3fe23fd10ec160cb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 6 Oct 2008 11:30:12 +0000 Subject: - Patch #310212 by justinrandell, catch, et all: killed in _user hook, as well as two small kittens. --- modules/system/system.module | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index 68d2c24ad..39019fe78 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -711,12 +711,10 @@ function system_preprocess_page(&$variables) { } /** - * Implementation of hook_user(). - * - * Allows users to individually set their theme and time zone. + * Implementation of hook_user_form(). */ -function system_user($type, $edit, &$user, $category = NULL) { - if ($type == 'form' && $category == 'account') { +function system_user_form(&$edit, &$user, $category = NULL) { + if ($category == 'account') { $form['theme_select'] = system_theme_select_form(t('Selecting a different theme will change the look and feel of the site.'), isset($edit['theme']) ? $edit['theme'] : NULL, 2); if (variable_get('configurable_timezones', 1)) { -- cgit v1.2.3