8.3.x system.module system_user_login(UserInterface $account)
8.0.x system.module system_user_login(UserInterface $account)
8.1.x system.module system_user_login(UserInterface $account)
8.2.x system.module system_user_login(UserInterface $account)
8.4.x system.module system_user_login(UserInterface $account)
7.x system.module system_user_login(&$edit, $account)

Implements hook_user_login().

File

modules/system/system.module, line 2004
Configuration system that lets administrators modify the workings of the site.

Code

function system_user_login(&$edit, $account) {
  // If the user has a NULL time zone, notify them to set a time zone.
  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')))));
  }
}