How to display the currently logged in user's details I am using D7 and views for one of my projects. I have created a view that displays the name, age, role and orders of the user. I would like these things to displayed only for the logged in user. For instance user/1 should get his name,age,role and orders only, he should not be able to see the other's details. Similarly each and every user must be able to see their own details. I know i can use the uid from the url, but not sure how to achieve this.

Thanks
Create a custom module and add following function.

function login_user_fn(){
   global $user;
   //print_r($user);
   $fid = $user-&gt;picture;
   $file = file_load($fid);
    if($file !=''){

    $user_pic  = theme('user_picture', array('account' =&gt; $user , 'path' =&gt; $file-&gt;uri,));

    return ('Hello '.$user-&gt;name.'&lt;br/&gt;'.$user_pic);
  }
}


And than call custom function " login_user_fn()" in our drupal custom block body.