You are here

function media_file_download_access in D7 Media 7

Implements hook_file_download_access().

File

./media.module, line 587
Media API

Code

function media_file_download_access($field, $entity_type, $entity) {
  if ($entity_type == 'media') {
    return media_access('view');
  }
}