function DrupalPrivateStreamWrapper::getExternalUrl
7.x stream_wrappers.inc | DrupalPrivateStreamWrapper::getExternalUrl() |
Overrides getExternalUrl().
Return the HTML URI of a private file.
Overrides DrupalStreamWrapperInterface::getExternalUrl
File
- drupal-7.x/
includes/ stream_wrappers.inc, line 805 - 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));
}