Projet

Général

Profil

Révision 4f315dab

Ajouté par Assos Assos il y a environ 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/recaptcha/recaptcha.module
10 10
 */
11 11
function recaptcha_help($path, $arg) {
12 12
  $output = '';
13

  
13 14
  switch ($path) {
14 15
    case 'admin/modules#name':
15 16
      $output .= t('reCAPTCHA');
16 17
      break;
18

  
17 19
    case 'admin/modules#description':
18 20
    case 'admin/user/captcha/recaptcha':
19 21
      $output .= t('Uses the <a href="@url" target="_blank">reCAPTCHA</a> web service to improve the CAPTCHA system and protect email addresses.', array('@url' => url('https://www.google.com/recaptcha')));
20 22
      break;
23

  
21 24
    case 'admin/help#recaptcha':
22 25
      $output .= '<p>' .
23 26
        t('Uses the reCAPTCHA web service to improve the CAPTCHA module and protect email addresses. For more information on what reCAPTCHA is, visit <a href="@url" target="_blank">the official website</a>.', array('@url' => url('https://www.google.com/recaptcha'))) .
......
28 31
        '</p>';
29 32
      break;
30 33
  }
34

  
31 35
  return $output;
32 36
}
33 37

  
......
99 103
        global $language;
100 104
        if (isset($language->language)) {
101 105
          // reCAPTCHA uses two-character language codes, so 'pt-br' must be
102
          // passed as 'pt'; cf. https://developers.google.com/recaptcha/docs/customization#i18n
106
          // passed as 'pt'.
103 107
          $recaptcha_options['lang'] = drupal_substr($language->language, 0, 2);
104 108
        }
105 109

  
......
166 170
}
167 171

  
168 172
/**
173
 * Test whether the reCAPTCHA server is up.
174
 *
169 175
 * @return bool
170 176
 *   TRUE if the reCAPTCHA server is up, FALSE otherwise.
171 177
 */

Formats disponibles : Unified diff