function _webform_name_options_validate in Name Field 7
Custom validation callback.
1 string reference to '_webform_name_options_validate'
- _webform_edit_name in includes/
webform.components.inc - Implements Webform callback _webform_edit_COMPONENT().
File
- includes/
webform.components.inc, line 194 - Name Field module name component for the Webform module.
Code
function _webform_name_options_validate($element, &$form_state) {
module_load_include('inc', 'name', 'includes/name.content');
_name_options_validate($element['#value'], $form_state['values']['extra']['components'][$element['#name_component']]['max_length'], $element['#title'], implode('][', $element['#array_parents']));
}