get user_page and modify main content I'm very new to drupal.
I have successfully added a new menu Tab. And When I click on it, it shows a new page with the expected data. 

However I would like:


To have a "proper page" not just the unthemed view. How can I get the user page and assign my view to its main content ? 
Is there any way to make the menu "ajax" ?


So far I have:

function custom_user_page_callback()
{ 
  $view = views_get_view('activity_feed');
  $view-&gt;set_display('view_block_name');
  //$view-&gt;set_arguments(array($tid));
  $view-&gt;set_items_per_page(5);
  $view-&gt;pre_execute();
  $view-&gt;execute();

  // Here Instead of printing what shall I do ? 
  // like:
  // $page = drupal_get_page( user );
  // $page["main_content"] =  $view-&gt;render();
  print $view-&gt;render();
}



function custom_user_menu()
{      
    $items['user/%user/activity'] = array(
        'title' =&gt; 'Activity',
        'page callback' =&gt; 'custom_user_page_callback',
        'access arguments' =&gt; array('access content'), 
        'type' =&gt; MENU_LOCAL_TASK,
    );    
    return $items;
}
I get the impression you want to create pages out of components, so rather look at Panels (and Panels Ajax Tabs). 

In order to use panels properly you have to learn how to use Page manager also as Panels integrates with it. The best online tutorials on that subject are from Johan Falk at Node One, Learn Page Manager! series. Tutorial 4 - 7 of that series deals specifically with Panels, but start at the beginning and work your way through it. You will also learn a lot about context which is an essential concept to master as a Drupal site builder.