I'm trying to put together a module (in D7) that as part of its work will be getting a call via URL from an external website.
I would like that website to pass me some info in the URL. I am looking to use a format like
http://example.com/index.html?utm_source=citysearch&utm_medium=email
rather than
http://example.com/index.html/citysearch/email
I have seen examples for handling the second but can't seem to find one for handling the first.
BTW there would be a fixed list(short) of the potential parameters. I can make them all required, but would like to be able to make one or two optional.
I'm guessing that it would probably be part of the menu manager, but I didn't see an appropriate module when I scanned the API list
The best would be if the URL could be parsed and the content stuffed into either an array or individual variables. Any tips on either code snippets using an external PHP library or an internal function that I somehow missed?
Any help/pointers appreciated.
Read »








