function file_force_menu in File Force Download 5
Same name and namespace in other branches
- 6.2 file_force.module \file_force_menu()
- 7 file_force.module \file_force_menu()
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 16
Code
function file_force_menu() {
return array(
'files/download' => array(
// Drupal 6
'path' => 'files/download',
// Drupal 5
'title' => 'File Force',
'description' => 'Force visitors to download requested files',
'callback' => 'file_force_go',
// Drupal 5
'page callback' => 'file_force_go',
// Drupal 6
'access' => array(
'access content',
),
// Drupal 5
'access arguments' => array(
'access content',
),
// Drupal 6
'type' => MENU_CALLBACK,
),
);
}