🇬🇧United Kingdom @superspring

Account created on 21 June 2012, over 12 years ago
#

Recent comments

🇬🇧United Kingdom superspring

Hey drupalshrek,

My main thoughts on the difference between url() and l() are that url() returns a nice URL, l() returns an HTML tag which contains a nice URL.

In this example, only the URL itself is needed, not the tag. I expect the code would not work properly if HTML was added where only a URL is expected.

The quote you gave above I suspect is for modules that are creating their own tags and placing nice URLs into them (such as what l() does).

🇬🇧United Kingdom superspring

This patch passes $_GET['q'] through url() to give it a nicer URL.

Production build 0.71.5 2024