function user_file_download_access

Implements hook_file_download_access().

File

modules/user/user.module, line 4141

Code

function user_file_download_access($field, $entity_type, $entity) {
    if ($entity_type == 'user') {
        return user_view_access($entity);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.