function ResourcePrivateStreamWrapper::htmlUrl in D7 Media 6
Return the HTML Url of a private file.
Overrides ResourcePublicStreamWrapper::htmlUrl
File
- resource/
ResourcePrivateStreamWrapper.inc, line 13
Class
- ResourcePrivateStreamWrapper
- private:// stream wrapper class.
Code
function htmlUrl($url) {
$basepath = variable_get($this->pathKey, $this->pathDefault);
return url('system/files/' . parse_url($url, PHP_URL_PATH), array(
'absolute' => TRUE,
));
}