1 file.module file_query_entity_field_access_alter(QueryAlterableInterface $query)

Implements hook_query_TAG_alter().

This function implements the same functionality as file_query_file_access_alter() for the SQL field storage engine. File access conditions are added for field values belonging to files only.

Related topics

File

core/modules/file/file.module, line 2935
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_query_entity_field_access_alter(QueryAlterableInterface $query) {
  _file_query_file_access_alter($query, 'entity');
}