function drd_server_file_download in Drupal Remote Dashboard Server 7.2
Implements hook_file_download().
File
- ./
drd_server.module, line 412 - Provides XMLRPC implementation to respond to requests from DRD.
Code
function drd_server_file_download($uri) {
if (strpos(file_uri_target($uri), 'drd_server_debug_') === 0) {
if (user_access('administer site configuration')) {
return array(
'Pragma' => 'public',
'Expires' => 0,
'Cache-Control' => 'must-revalidate, post-check=0, pre-check=0',
'Content-Type' => 'application/force-download',
);
}
}
return NULL;
}