hook_filemanager_download($file)
filemanager/doc/filemanager.php, line 58
Determine whether this private download is accessible by the user.
When a private file is requested the file api will call all modules passing them the file. The first module to respond will be authoritative and no further modules will be queried.
The file api will default access to FALSE, except for general where it will be TRUE, if no modules return a value.
This hook should not return anything or one of three values:
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
<?php
function hook_filemanager_download($file) {
if ($file->area == 'myarea') {
return TRUE;
}
}
?>