You are here

function fapi_validation_element_info_alter in Form API Validation 7.2

Same name and namespace in other branches
  1. 8.2 fapi_validation.module \fapi_validation_element_info_alter()
  2. 8 fapi_validation.module \fapi_validation_element_info_alter()
  3. 7 fapi_validation.module \fapi_validation_element_info_alter()

Implements hook_element_info_alter().

File

./fapi_validation.module, line 6

Code

function fapi_validation_element_info_alter(&$types) {
  foreach ($types as $type_name => $type_info) {
    if (!empty($type_info['#input'])) {
      $types[$type_name]['#process'][] = 'fapi_validation_element_process';
    }
  }
}