The existing Views argument validator "Me" provided by "me aliases" module only accepts "me", or the uid of the current user.
Other validators accept arbitrary uids or usernames, but they do not accept "me".

What is missing is an argument validator that accepts both "me", and other uids or (optionally) usernames.

There are various issues that are (I think) symptoms of this problem:
#784204: Choosing the "me" validation method makes administration pages not accessible anymore
#405866: Views argument User:ID and me aliases
#1919368: "me" works in the Menu where I have 'user/me' and redirect turned on but it fails if it is 'user/me/orders'
#909566: Views Menu Arguments User ID

The solution can be to introduce a new argument validator, or to add an option to the existing argument validator.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

donquixote created an issue. See original summary.

donquixote’s picture

Status: Active » Needs review
Related issues: +#405866: Views argument User:ID and me aliases
FileSize
2.16 KB

We can reuse the existing class for the new argument handler plugin.

donquixote’s picture

Need to be compatible with parent::init() signature.

-  function init($view,  $argument, $options) {
+  function init(&$view, &$argument, $options) {