function imce_file_references in IMCE 6.2
Implementation of hook_file_references().
File
- ./
imce.module, line 116 - Implements the necessary hooks for the file browser to work properly.
Code
function imce_file_references($file) {
//do not report reference count on internal file deletion
if (isset($file->imce_noref) && $file->imce_noref) {
return;
}
if (db_fetch_array(db_query('SELECT 1 FROM {imce_files} WHERE fid = %d', $file->fid))) {
return array(
'imce' => 1,
);
}
}