function download_file_menu in DownloadFile 7
Same name and namespace in other branches
- 6 download_file.module \download_file_menu()
- 7.3 download_file.module \download_file_menu()
- 7.2 download_file.module \download_file_menu()
Implementation of hook_menu().
File
- ./
download_file.module, line 46 - Module to direct download files or images.
Code
function download_file_menu() {
$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/config/media/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',
),
'weight' => 30,
'file' => 'download_file.admin.inc',
);
return $items;
}