You are here

function template_preprocess_recaptcha_widget_noscript in reCAPTCHA 6.2

Same name and namespace in other branches
  1. 8.3 recaptcha.module \template_preprocess_recaptcha_widget_noscript()
  2. 8.2 recaptcha.module \template_preprocess_recaptcha_widget_noscript()
  3. 7.2 recaptcha.module \template_preprocess_recaptcha_widget_noscript()

Process variables for recaptcha-widget-noscript.tpl.php.

See also

recaptcha-widget-noscript.tpl.php

File

./recaptcha.module, line 172

Code

function template_preprocess_recaptcha_widget_noscript(&$variables) {
  $variables['sitekey'] = check_plain($variables['widget']['sitekey']);
  $variables['language'] = check_plain($variables['widget']['language']);
  $variables['url'] = check_url(url('https://www.google.com/recaptcha/api/fallback', array(
    'query' => array(
      'k' => $variables['widget']['sitekey'],
      'hl' => $variables['widget']['language'],
    ),
    'absolute' => TRUE,
  )));
}