function download_file_menu in DownloadFile 6
Same name and namespace in other branches
- 7.3 download_file.module \download_file_menu()
- 7 download_file.module \download_file_menu()
- 7.2 download_file.module \download_file_menu()
Implementation of hook_menu().
File
- ./
download_file.module, line 42 - Module to direct download files or images.
Code
function download_file_menu() {
$items = array();
$items['download/file/fid/%'] = array(
'title' => 'Download file',
'page callback' => 'download_file_direct_download',
'page arguments' => array(
3,
),
'access arguments' => array(
'access direct download file',
),
);
$items['admin/settings/download-file'] = array(
'title' => 'Download file',
'description' => 'Configure the format of the link accessible.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'download_file_settings',
),
'access arguments' => array(
'administer download file',
),
'file' => 'download_file.admin.inc',
);
return $items;
}