Project

General

Profile

Revision 01f36513

Added by Assos Assos about 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/i18n/i18n_user/i18n_user.module
9 9
 */
10 10
function i18n_user_mail_alter(&$message) {
11 11
  if ($message['module'] == 'user') {
12
    $user_preferred = language_default();
12
    $message['language'] = language_default();
13 13
    if (isset($message['params']['account'])) {
14 14
      $user_preferred = user_preferred_language($message['params']['account']);
15
      if (isset($user_preferred)) {
16
        $message['language'] = $user_preferred;
17
      }
15 18
    }
16
    $language = (isset($message['language']) ? $message['language'] : $user_preferred);
19
    $language = (isset($message['language']) ? $message['language'] : language_default());
17 20
    $variables = array('user' => $message['params']['account']);
18 21
    $key = $message['key'];
19 22

  

Also available in: Unified diff