Custom module visible only for one user EDIT:

14:38 PM Amsterdam :P

Nice to see that good people help !...

What I trying to do:

This is the whole prototype code.

function oleg_menu() {


    $items=array();
    $items['user/%user/pgacademy/tests'] = array(
        'title' =&gt; 'OLEG',
        'page callback' =&gt; 'drupal_get_form',
        'page arguments' =&gt; array('oleg_nameform',1),
        'access callback' =&gt; TRUE,
        'type' =&gt; MENU_CALLBACK,
    );
    return $items;
}


function oleg_nameform($form, &amp;$form_state,$accoundID) {
     $form=array();
     dpm($accauntID);
     return $form;
}         


The page even doesn't appear...
Can someone explain me why it fails,or what could be the problem ?
Oleg
What indrock says in the comments is right, you should be using a placeholder like %user.

But you'll also need to pass the argument through to the form callback like so:

function my_module_menu() {
  $items['user/%user/foo/bar'] = array(
    'title' =&gt; 'My Title',
    'page callback' =&gt; 'drupal_get_form',
    'page arguments' =&gt; array('my_module_nameform', 1),
    'access callback' =&gt;array('user_is_logged_in'), 
    'type' =&gt; MENU_CALLBACK,
  );
  return $items;
}


The signature for my_module_nameform() would be:

function my_module_nameform($form, &amp;$form_state, $account)


user_is_logged_in() doesn't accept any parameters so there's no need for the access arguments. Again as indrock says, clear the caches whenever you make a change to the hook implementation.