function _fapi_validation_data in Form API Validation 7.2
Same name and namespace in other branches
- 8 fapi_validation.module \_fapi_validation_data()
- 6 fapi_validation.module \_fapi_validation_data()
- 7 fapi_validation.module \_fapi_validation_data()
2 calls to _fapi_validation_data()
- fapi_validation_filters_execute in ./
fapi_validation.module - Function for executing all filters
- fapi_validation_rules_execute in ./
fapi_validation.module - Function for executing all rules
File
- ./
fapi_validation.module, line 148
Code
function _fapi_validation_data($type, $refresh = NULL) {
static $data = array();
if (!isset($data[$type]) || !count($data[$type]) || $refresh) {
foreach (module_implements('fapi_validation_' . $type) as $module) {
$validations = module_invoke($module, 'fapi_validation_' . $type);
if (isset($validations) && is_array($validations)) {
foreach ($validations as $name => $info) {
$data[$type][$name] = $info;
}
}
}
}
return $data[$type];
}