You are here

function video_transfer_file in Video 7.2

Menu callback for video/transfer/%file

1 string reference to 'video_transfer_file'
video_menu in ./video.module
Implements hook_menu().

File

./video.pages.inc, line 29
This file stores all menu callbacks for the Video module

Code

function video_transfer_file($file) {
  $headers = file_get_content_headers($file);
  $headers['Content-disposition'] = 'attachment; filename="' . mime_header_encode($file->filename) . '";';
  file_transfer($file->uri, $headers);
}