Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If your hook_menu() defines an entry:
$item['user/%/mytab'] = array( ... )
...then the string 'me' is passed as the argument, not the user's UID.
Comments
Comment #1
AndrewJarvis CreditAttribution: AndrewJarvis commentedI am having this issue as well. As an Administrator viewing another users profile, the edit link has "me" instead of the user id. Manually replacing the url with the user's ID still works though, so it is only a problem with the printing of the edit tab itself on the User page.
Drupal 7
Using Profiles2