Closed (won't fix)
Project:
Drupal core
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Apr 2005 at 08:33 UTC
Updated:
1 Aug 2005 at 01:11 UTC
Although not essential, it would be good if arg() can return all request aruments. It is a minor enhancement, but IMO encourages consistency.
| Comment | File | Size | Author |
|---|---|---|---|
| bootstrap_2.patch | 951 bytes | dikini |
Comments
Comment #1
dikini commentedSorry, moved the version to cvs, it is applicable, but not really relevan for 4.6
Comment #2
Steven commentedAs far as I know, this would be equivalent to just using $_GET['q'], which we use elsewhere. It is certainly nicer in code, but you should also update the places where this is used then.
Comment #3
dikini commentedThat's true. This is mainly a utility/readability concern.
I can do that, but it is a bit of an effort, and since it won't break any existing functionality, I haven't even though of doing it. I thoght small patches are better :) There are 64 uses of $_GET currently in core, and each of them should be considered with care.
There is a long term possibility, which might be worth exploring - capturing info not only from GET, but POST, PUT, ... requests.
Comment #4
dries commentedThere is no problem with using $_GET['q']. I'm not tempted to commit this patch.
Comment #5
killes@www.drop.org commentedDries doesn't like it and there was no reply by the author.