function user_file_download_access
7.x user.module | user_file_download_access($field, $entity_type, $entity) |
Implements hook_file_download_access().
File
- drupal-7.x/
modules/ user/ user.module, line 4001 - Enables the user registration and login system.
Code
function user_file_download_access($field, $entity_type, $entity) {
if ($entity_type == 'user') {
return user_view_access($entity);
}
}