User menu tab content On the /user page i've created two tabs:

function hook_menu() {

    $items['user/%/My-Courses'] = array(
        'title' =&gt; 'My Courses',
        'type' =&gt; MENU_LOCAL_TASK,
        'page callback' =&gt; 'drupal_get_form',
        'page arguments' =&gt; array('hook_form'),
        'access callback' =&gt; 'hook_access',
        'access arguments' =&gt; array('access content'),
    );

    $items['user/%/Privacy-Statement'] = array(
        'title' =&gt; 'Privacy Statement',
        'type' =&gt; MENU_LOCAL_TASK,
        'page callback' =&gt; 'drupal_get_form',
        'page arguments' =&gt; array('hook_form'),
        'access callback' =&gt; 'hook_access',
        'access arguments' =&gt; array('access content'),
    );

    return $items;
}


What i'm trying to do is add a link to the my courses tab, and a privacy statement (just text) to the privacy statement tab. 

function hook_form(){

$form['privacy'] = array(
    '#type' =&gt; 'textfield',
    '#value' =&gt; 'Privacy statement',
  );

 // returns whatever you want to appear in that tab. 
 $form['link1'] = array(
     '#type' =&gt; 'submit',
     '#value' =&gt; t('This will show the customers courses.'),
 );

 return $form;
}


The problem is that it's adding both the link and statement to both tabs.

How would I go about targeting each tab individually?
I think you'd be better off creating 2 separate forms for each tab, but if you want one form to handle both you can use the function menu_get_item() to determine the menu path that routed to the form. 

  $menu_item = menu_get_item();
  if(isset($menu_item['path']) &amp;&amp; $menu_item['path'] == 'user/%/Privacy-Statement') {
    //@TODO: Add form elements specific to privacy tab
  }