token for url query string
MGN - August 15, 2009 - 19:51
| Project: | Token |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | MGN |
| Status: | needs review |
Description
This patch adds new tokens [query-name] to the tokenSTARTER module that will return the value of the url query field name.
So if the url is http://www.example.com/somepath?nid=4&uid=2 , then [query-nid] would be replaced with 4 and [query-uid] would be replaced with 2.
There have been a couple of requests for something like this in #273893: Argument arg() support in Token and #546958: URL argument placeholder token.
| Attachment | Size |
|---|---|
| query_tokens.diff | 2.28 KB |
