function DrupalPrivateStreamWrapper::getExternalUrl in Drupal 7
Overrides getExternalUrl().
Return the HTML URI of a private file.
Overrides DrupalStreamWrapperInterface::getExternalUrl
File
- includes/
stream_wrappers.inc, line 953 - Drupal stream wrapper interface.
Class
- DrupalPrivateStreamWrapper
- Drupal private (private://) stream wrapper class.
Code
function getExternalUrl() {
$path = str_replace('\\', '/', $this
->getTarget());
return url('system/files/' . $path, array(
'absolute' => TRUE,
));
}