How to hide the View tab in user page? In the user page (www.example.com/user), there are [View | Edit] tabs. Is it possible to hide the View tab and leave Edit tab there?
You could also just use hook_menu_local_tasks_alter() in D7:

function MYMODULE_menu_local_tasks_alter(&amp;$data){
foreach ($data['tabs'][0]['output'] as $key =&gt; $value) {
        if ($value['#link']['path'] == "user/%/view"){
            unset($data['tabs'][0]['output'][$key]);
        }
    }
}


Documentation