function filefield_view_access in FileField 6.3
Same name and namespace in other branches
- 6.2 filefield.module \filefield_view_access()
Access callback that checks if the current user may view the filefield.
2 calls to filefield_view_access()
- filefield_file_download in ./
filefield.module - Implementation of hook_file_download().
- theme_filefield_item in ./
filefield_formatter.inc - Theme function for any file that is managed by FileField.
File
- ./
filefield.module, line 574 - FileField: Defines a CCK file field type.
Code
function filefield_view_access($field_name, $node = NULL) {
return content_access('view', content_fields($field_name), NULL, $node);
}