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
I think Olaf's suggestion is probably best for your use case. Multiple values will be much cleaner and less error prone than a long field with multiple values. I have once enlarged a...
Expanding a field
Years later: I have been overlooking the fact that fields in content types can have more 'numbers of values'. It was hidden under 'Global settings'. Setting this to more than one I...
Views & external relational databases
Hi Egmund, I guess this is a text field, right? Instead of allowing more characters you could change the field settings to allow multiple values, so that an editor has the option to use the...
Expanding a field