diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-11 19:16:42 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-11 19:16:42 +0000 |
commit | e0af4f153813ee5cd28453bb1b4ac778b9042164 (patch) | |
tree | f130410ea3b1cbe39155645a839def9d300e6f9a /modules | |
parent | aef32bf31119e2bd5c20b12a0f9391df1bd634f9 (diff) | |
download | brdo-e0af4f153813ee5cd28453bb1b4ac778b9042164.tar.gz brdo-e0af4f153813ee5cd28453bb1b4ac778b9042164.tar.bz2 |
#965004 by johnbarclay, mr.baileys: Fixed Mismatched argument/variables in hook_user_login() documentation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user/user.api.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 <a href="@user-edit">account time zone setting</a>.', 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 <a href="@user-edit">account time zone setting</a>.', array('@user-edit' => url("user/$account->uid/edit", array('query' => drupal_get_destination(), 'fragment' => 'edit-timezone'))))); } } |