function user_file_download_access

cis7 user.module user_file_download_access($field, $entity_type, $entity)
cle7 user.module user_file_download_access($field, $entity_type, $entity)
elmsmedia7 user.module user_file_download_access($field, $entity_type, $entity)
icor7 user.module user_file_download_access($field, $entity_type, $entity)
meedjum_blog7 user.module user_file_download_access($field, $entity_type, $entity)
mooc7 user.module user_file_download_access($field, $entity_type, $entity)

Implements hook_file_download_access().

File

modules/user/user.module, line 4000
Enables the user registration and login system.

Code

function user_file_download_access($field, $entity_type, $entity) {
  if ($entity_type == 'user') {
    return user_view_access($entity);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.