function filefield_sources_element_validation_help in FileField Sources 6
Same name and namespace in other branches
- 8 filefield_sources.module \filefield_sources_element_validation_help()
- 7 filefield_sources.module \filefield_sources_element_validation_help()
Generate help text based on the $element['#upload_validators'] property.
4 calls to filefield_sources_element_validation_help()
- filefield_source_attach_process in sources/
attach.inc - A #process callback to extend the filefield_widget element type.
- filefield_source_imce_process in sources/
imce.inc - A #process callback to extend the filefield_widget element type.
- filefield_source_reference_process in sources/
reference.inc - A #process callback to extend the filefield_widget element type.
- filefield_source_remote_process in sources/
remote.inc - A #process callback to extend the filefield_widget element type.
File
- ./
filefield_sources.module, line 424 - Extend FileField to allow files from multiple sources.
Code
function filefield_sources_element_validation_help($validators) {
$desc = array();
foreach ($validators as $callback => $arguments) {
$help_func = $callback . '_help';
if (function_exists($help_func)) {
$desc[] = call_user_func_array($help_func, $arguments);
}
}
return empty($desc) ? '' : implode('<br />', $desc);
}