function filefield_file_references in FileField 6.2
Same name and namespace in other branches
- 6.3 filefield.module \filefield_file_references()
Implementation of hook_file(). (Which is implemented by filefield/imagefield in Drupal 6 yet).
File
- ./
filefield.module, line 156
Code
function filefield_file_references($file) {
$references = 0;
foreach (content_fields() as $field) {
if ($field['type'] != 'file') {
continue;
}
$references += field_file_references($file, $field);
}
return array(
'filefield' => $references,
);
}