user_file_references
- Versions
- 7
user_file_references($file)
Implements hook_file_references().
Code
modules/user/user.module, line 807
<?php
function user_file_references($file) {
// Determine if the file is used by this module.
$file_used = (bool) db_query_range('SELECT 1 FROM {users} WHERE picture = :fid', 0, 1, array(':fid' => $file->fid))->fetchField();
if ($file_used) {
// Return the name of the module and how many references it has to the file.
return array('user' => $count);
}
}
?>Login or register to post comments 