Pull merge.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / file_download_access_alter.twig
1 /**
2  * Implements hook_file_download_access_alter().
3  */
4 function {{ machine_name }}_file_download_access_alter(&$grants, $file_item, $entity_type, $entity) {
5   // For our example module, we always enforce the rules set by node module.
6   if (isset($grants['node'])) {
7     $grants = array('node' => $grants['node']);
8   }
9 }