You are here

function ddf_remove_validation in Dynamic dependent fields 7

Disables field validation selectors.

1 string reference to 'ddf_remove_validation'
ddf_selector_element_value in ./ddf.module
Replacement for form_type_select_value() functions for selectors.

File

./ddf.module, line 462

Code

function ddf_remove_validation(&$element, &$form_state) {
  unset($element['#needs_validation']);
  return $element;
}