You are here

function file_entity_views_query_substitutions in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 file_entity.views.inc \file_entity_views_query_substitutions()

Implements hook_views_query_substitutions().

File

./file_entity.views.inc, line 169
Views integration for the file_entity module.

Code

function file_entity_views_query_substitutions() {
  return array(
    '***ADMINISTER_FILES***' => intval(user_access('administer files')),
    '***BYPASS_FILE_ACCESS***' => intval(user_access('bypass file access')),
  );
}