function node_file_download_access

Implements hook_file_download_access().

File

modules/node/node.module, line 4197

Code

function node_file_download_access($field, $entity_type, $entity) {
    if ($entity_type == 'node') {
        return node_access('view', $entity);
    }
}

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