function file_entity_query_file_access_alter in File Entity (fieldable files) 7.2
Same name and namespace in other branches
- 7.3 file_entity.module \file_entity_query_file_access_alter()
Implements hook_query_TAG_alter().
This is the hook_query_alter() for queries tagged with 'file_access'. It adds file access checks for the user account given by the 'account' meta-data (or global $user if not provided).
Related topics
File
- ./
file_entity.module, line 1890 - Extends Drupal file entities to be fieldable and viewable.
Code
function file_entity_query_file_access_alter(QueryAlterableInterface $query) {
_file_entity_query_file_entity_access_alter($query, 'file');
}