You are here

function template_preprocess_recaptcha_widget_noscript in reCAPTCHA 7.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. 6.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 223

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($variables['widget']['recaptcha_src_fallback'], array(
    'query' => array(
      'k' => $variables['widget']['sitekey'],
      'hl' => $variables['widget']['language'],
    ),
    'absolute' => TRUE,
  )));
}