https://api.drupal.org/api/drupal/core%21includes%21file.inc/function/fi...
Transforms an absolute URL of a local file to a relative URL.
May be useful to prevent problems on multisite set-ups and prevent mixed content errors when using HTTPS + HTTP.
Parameters string
$file_url: A file URL of a local file as generated byfile_create_url().Return value string If the file URL indeed pointed to a local file and was indeed absolute, then the transformed, relative URL to the local file. Otherwise: the original value of
$file_url.
Recent comments
This has always been available using a separate module. Now added to the core, thanks for developers.
Gallery inside post content
It's the reason why i refuse "builder" because finally, you have a "student blog". But a gallery it's not a crazy thinks. All CMS propose it. Too many constraints can also scare your...
Gallery inside post content
There is such a thing as a "publication format" — all publications must be made in the same style, which was developed by the designer, and the task of the editor is to fill in the provided...
Gallery inside post content