I have a dropping menu links for the user menu:
- Profile edit
- My posts (track)
Here's an example of my code:
<ul id="userNavigation"> <li><?php echo l(t("Profile edit"), "user/%/edit"); ?></li> <li><?php echo l(t("My posts"), "user/%/track"); ?></li> <li class="exit"><?php echo l(t("Exit"), "user/logout"); ?></li> </ul>
I've tried with wildcard %. With a Views module was very easy, but in this case (without views) it's not working.
Is any other way so when user clicks on "My posts" will link to
user/user_id/track or profile edit that will lead to