function track_da_files_create_url in Track da files 8
Same name and namespace in other branches
- 7 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()
- template_preprocess_track_da_files_file_link in ./
track_da_files.module - Prepares variables for file link templates.
- theme_track_da_files_file_link in includes/
track_da_files_formatter.inc - Returns HTML for a link to a file.
- TrackDaFilesFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ TrackDaFilesFormatter.php - Builds a renderable array for a field value.
File
- ./
track_da_files.module, line 136 - 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);
}