1 file.module file_entity_access($op, $file = NULL, $account = NULL)

Deprecated wrapper function. Determines if a user may perform the given operation on the specified file.

Deprecated

since 1.14.0

See also

file_access()

Related topics

File

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

Code

function file_entity_access($op, $file = NULL, $account = NULL) {
  watchdog_deprecated_function('file', __FUNCTION__, t('Change record:') . ' ' . l(t('File access functions have been renamed from <code>file_entity</code> module in Drupal 7'), 'https://docs.backdropcms.org/change-records/file-access-functions-have-been-renamed-from-file_entity-module-in-drupal-7', array('attributes' => array('target' => '_blank'))));
  return file_access($op, $file, $account);
}