This is really just a documentation issue, but since $user is a global variable, clarity in the doxygen documentation will be added by fixing this.
Change function hook_user_login(&$edit, $account) to function hook_user_login(&$edit, $user)
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')))));
}
}
Comments
Comment #1
mr.baileysGood catch, definitely a bug.
Comment #2
mr.baileysComment #3
jhodgdonGracious! Good catch.
Comment #4
webchickCommitted to HEAD. Thanks!