function track_da_files_create_url in Track da files 7
Same name and namespace in other branches
- 8 track_da_files.module \track_da_files_create_url()
Track da files version of file_create_url.
3 calls to track_da_files_create_url()
- theme_track_da_files_file_link in includes/
track_da_files_formatter.inc - Returns HTML for a link to a file.
- theme_track_da_files_url_plain in includes/
track_da_files_formatter.inc - Returns plain URL to a file.
- track_da_files_field_formatter_view in ./
track_da_files.module - Implements hook_field_formatter_view().
File
- ./
track_da_files.module, line 495 - This file contains Track da files main functions.
Code
function track_da_files_create_url($uri, $id = NULL) {
$scheme = file_uri_scheme($uri);
if ($scheme == 'public') {
return file_create_url('system/tdf/' . file_uri_target($uri));
}
return file_create_url($uri);
}