You are here

function user_file_download_access in Drupal 7

Implements hook_file_download_access().

File

modules/user/user.module, line 4080
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);
  }
}