function filefield_validate_associate_field in FileField 6.3
An #upload_validators callback. Add the field to the file object.
This validation function adds the field to the file object for later use in field aware modules implementing hook_file. It's not truly a validation at all, rather a convient way to add properties to the uploaded file.
File
- ./
filefield.module, line 959 - FileField: Defines a CCK file field type.
Code
function filefield_validate_associate_field(&$file, $field) {
$file->field = $field;
return array();
}