function user_file_download_access

user_file_download_access($field, $entity_type, $entity)

Implements hook_file_download_access().

File

modules/user/user.module, line 4056
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);
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.module/function/user_file_download_access/7.x