Hi how to get uid of current view user profile. means: user/123 then get uid= 123 user/22 then get uid=22 i had write menu alter function. i want uid in that function. -- ** ** Best, Mayur <http://www.mayurpimple.com> * * <http://www.mayurpimple.com> * *
<?php global $user; $uid= $user->uid; ?> I believe. On Fri, Jun 29, 2012 at 2:37 PM, Mayur pimple <mayurpimple12@gmail.com> wrote:
Hi
how to get uid of current view user profile.
means: user/123 then get uid= 123 user/22 then get uid=22
i had write menu alter function. i want uid in that function.
--
Best,
Mayur
-- [ Drupal support list | http://lists.drupal.org/ ]
On Fri, Jun 29, 2012 at 2:37 PM, Mayur pimple <mayurpimple12@gmail.com> wrote:
Hi
how to get uid of current view user profile.
means: user/123 then get uid= 123 user/22 then get uid=22
i had write menu alter function. i want uid in that function.
There is a plethora of hook_user_* functions that might help or if you need just the UID arg(1) will return the 2nd item of the query, in this case 123 or 22. -- Earnie -- https://sites.google.com/site/earnieboyd
participants (3)
-
Earnie Boyd -
Mayur pimple -
Patrick Avella