1.20.x node.module | node_file_download_access($field, $entity_type, $entity) |
Implements hook_file_download_access().
File
- modules/
node/ node.module, line 3785 - The core module that allows content to be submitted to the site.
Code
function node_file_download_access($field, $entity_type, $entity) {
if ($entity_type == 'node') {
return node_access('view', $entity);
}
}