Commit dc7a5422 authored by alexpott's avatar alexpott

Issue #2300297 by er.pushpinderrana, joshi.rohit100 | lmeurs:...

Issue #2300297 by er.pushpinderrana, joshi.rohit100 | lmeurs: Hook_file_download() also controls temporary files.
parent d526f0de
......@@ -1499,9 +1499,10 @@ function hook_stream_wrappers_alter(&$wrappers) {
/**
* Control access to private file downloads and specify HTTP headers.
*
* This hook allows modules enforce permissions on file downloads when the
* private file download method is selected. Modules can also provide headers
* to specify information like the file's name or MIME type.
* This hook allows modules to enforce permissions on file downloads whenever
* Drupal is handling file download, as opposed to the web server bypassing
* Drupal and returning the file from a public directory. Modules can also
* provide headers to specify information like the file's name or MIME type.
*
* @param $uri
* The URI of the file.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment