2 * Implements hook_file_download().
4 function {{ machine_name }}_file_download($uri) {
5 // Check to see if this is a config download.
6 $scheme = file_uri_scheme($uri);
7 $target = file_uri_target($uri);
8 if ($scheme == 'temporary' && $target == 'config.tar.gz') {
10 'Content-disposition' => 'attachment; filename="config.tar.gz"',