function file_force_go in File Force Download 5
The function that does stuff. This makes the file path correspond to the correct filesystem path, lets us know that we should respond when our hook_file_download() implementation is called, and finally calls file_download() to start the download process.
1 string reference to 'file_force_go'
- file_force_menu in ./
file_force.module - Implementation of hook_menu(). Note that the D5 and D6 versions of this module are identical in all ways, which is why the function below contains elements for both versions.
File
- ./
file_force.module, line 63
Code
function file_force_go() {
$args = func_get_args();
$filepath = file_directory_path() . '/' . implode('/', $args);
define('FILE_FORCE_ACTIVE', TRUE);
file_download($filepath);
}