You are here

function media_browser_plus_file_download_access_alter in Media Browser Plus 7

Same name and namespace in other branches
  1. 7.2 media_browser_plus.module \media_browser_plus_file_download_access_alter()

Revokes the general 'view media' == 'download media' access rule.

Parameters

$grants:

$field:

$entity_type:

$entity:

File

./media_browser_plus.module, line 1041
Adds fields to the media browser forms for better UX

Code

function media_browser_plus_file_download_access_alter(&$grants, $field, $entity_type, $entity = NULL) {
  if ($entity_type == 'file') {
    unset($grants['file']);
  }
}