image_file_download($uri)
Implements hook_file_download().
Control the access to files underneath the styles directory.
File
core/modules/image/image.module, line 169 Exposes global functionality for creating image styles.
Code
function image_file_download($uri) {
$path = file_uri_target($uri);
// Private file access for image style derivatives.
if (strpos($path, 'styles/') === 0) {
$args = explode('/', $path);
// Discard "styles", style name, and scheme from the path
$arg