You are here

function captcha_pre_render_process in CAPTCHA 8

Same name and namespace in other branches
  1. 6.2 captcha.module \captcha_pre_render_process()
  2. 7 captcha.module \captcha_pre_render_process()

Pre-render callback for additional processing of a CAPTCHA form element.

This encompasses tasks that should happen after the general FAPI processing (building, submission and validation) but before rendering (e.g. storing the solution).

Parameters

array $element: The CAPTCHA form element.

Return value

array The manipulated element.

Deprecated

in captcha:8.x-1.0 and is removed from captcha:8.x-2.0. Use \Drupal\captcha\Element\Captcha::preRenderProcess() instead.

See also

https://www.drupal.org/project/captcha/issues/1949682

File

./captcha.module, line 633
This module enables basic CAPTCHA functionality.

Code

function captcha_pre_render_process(array $element) {
  return Captcha::preRenderProcess($element);
}