You are here

function download_file_path in DownloadFile 6

Same name and namespace in other branches
  1. 7.3 download_file.module \download_file_path()
  2. 7 download_file.module \download_file_path()
  3. 7.2 download_file.module \download_file_path()

Get the path to download file.

Parameters

$fid: The filefield identifier.

Return value

An string containing the path to direct download file.

6 calls to download_file_path()
theme_download_file_direct_download_icon_item in ./download_file.formatter.inc
Theme function for the 'direct_download_icon' multiple file formatter.
theme_download_file_direct_download_icon_item_accessible in ./download_file.formatter.inc
Theme function for the 'direct_download_accessible_icon' multiple file formatter.
theme_download_file_direct_download_item in ./download_file.formatter.inc
Theme function for the 'direct_download' multiple file formatter.
theme_download_file_direct_download_item_accessible in ./download_file.formatter.inc
Theme function for the 'direct_download_accessible' multiple file formatter.
theme_download_file_imagecache_accessiblelink_direct_download in ./download_file.formatter.inc
Theme function for the 'imagecache_accessiblelink_direct_download' multiple file formatter.

... See full list

File

./download_file.module, line 232
Module to direct download files or images.

Code

function download_file_path($fid) {
  return 'download/file/fid/' . $fid;
}