| 7 node.module | node_file_download_access($field, $entity_type, $entity) |
| 8 node.module | node_file_download_access($field, $entity_type, $entity) |
Implements hook_file_download_access().
File
- modules/
node/ node.module, line 3962 - The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
Code
function node_file_download_access($field, $entity_type, $entity) {
if ($entity_type == 'node') {
return node_access('view', $entity);
}
}
Login or register to post comments