function pay_element_set_required in Pay 7
Same name and namespace in other branches
- 6 pay.module \pay_element_set_required()
A helper function to be used as a #pre_render callback: Sets an element to "required" for rendering. The calling code should handle validation responsibly.
1 string reference to 'pay_element_set_required'
- pay_method_gateway::form in includes/
handlers/ pay_method_gateway.inc
File
- ./
pay.module, line 429 - Pay module allows for accepting payments using pluggable payment backends.
Code
function pay_element_set_required($element) {
$element['#required'] = TRUE;
return $element;
}