From e0af4f153813ee5cd28453bb1b4ac778b9042164 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 11 Dec 2010 19:16:42 +0000 Subject: #965004 by johnbarclay, mr.baileys: Fixed Mismatched argument/variables in hook_user_login() documentation. --- modules/user/user.api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/user/user.api.php') diff --git a/modules/user/user.api.php b/modules/user/user.api.php index f4c337446..17618e16f 100644 --- a/modules/user/user.api.php +++ b/modules/user/user.api.php @@ -292,8 +292,8 @@ function hook_user_update(&$edit, $account, $category) { */ function hook_user_login(&$edit, $account) { // If the user has a NULL time zone, notify them to set a time zone. - if (!$user->timezone && variable_get('configurable_timezones', 1) && variable_get('empty_timezone_message', 0)) { - drupal_set_message(t('Configure your account time zone setting.', array('@user-edit' => url("user/$user->uid/edit", array('query' => drupal_get_destination(), 'fragment' => 'edit-timezone'))))); + if (!$account->timezone && variable_get('configurable_timezones', 1) && variable_get('empty_timezone_message', 0)) { + drupal_set_message(t('Configure your account time zone setting.', array('@user-edit' => url("user/$account->uid/edit", array('query' => drupal_get_destination(), 'fragment' => 'edit-timezone'))))); } } -- cgit v1.2.3