summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Boyer2008-12-29 04:07:26 (GMT)
committer Sam Boyer2008-12-29 04:07:26 (GMT)
commitfa2a8e36bd7e56b64e4a4b696216094b1fa414a0 (patch)
tree11f44fbbd0a977d6687d53f309839de029004c40
parent8d0cd4a20f53bc0fc2457db35f0bad105facf686 (diff)
Removed hack intended to manage %user_uid_optional case; turns out that the to_arg function on the menu item handled it all for us, and it's unnecessary by the time we get to Panels.
-rw-r--r--arguments/uid.inc5
1 files changed, 0 insertions, 5 deletions
diff --git a/arguments/uid.inc b/arguments/uid.inc
index 2fed394..7635d1c 100644
--- a/arguments/uid.inc
+++ b/arguments/uid.inc
@@ -33,11 +33,6 @@ function panels_uid_context($arg = NULL, $conf = NULL, $empty = FALSE) {
return panels_context_create_empty('user');
}
- // Simulate the %user_uid_optional case. Hackity hackity hack!
- if (is_null($arg) && $_GET['q'] == 'user') {
- $arg = $GLOBALS['user']->uid;
- }
-
// FIXME: The code designed to handle a numeric id for loading is probably
// pretty much cruft by now, and SHOULD be removed pending some more thorough
// testing & thinking.