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

AndrewJarvis’s picture

I 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