function _filefield_upload_validators in FileField 6.2
Retrieve a list of file validator functions (and arguments) that can be passed to file_save_upload() (or field_file_save_upload()) as is.
1 call to _filefield_upload_validators()
- _filefield_file_upload in ./
filefield.widget.inc  - Upload a file to the given field and delta (or try to, at least), and update the corresponding part of the form state with the new file data.
 
File
- ./
filefield.widget.inc, line 235  - FileField: Defines a CCK file field type.
 
Code
function _filefield_upload_validators($field, $widget, $items) {
  $validator_info = _filefield_validator_info($field, $widget, $items);
  $validators = array();
  foreach ($validator_info as $validator_function => $info) {
    $validators[$validator_function] = $info['validator arguments'];
  }
  return $validators;
}