function user_file_download_access

Implements hook_file_download_access().

Archivo

drupal-7.x/modules/user/user.module, line 3993
Enables the user registration and login system.

Código

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