Three level tab on user profile page
Drupal doesn't provide third level local tasks by own. You have to implement it, something like this:

/**
 *  @see: menu_local_tabs()
 */
function my_module_menu_local_tabs() {
  return array(
    '#theme' =&gt; 'menu_local_tasks', 
    '#primary' =&gt; menu_primary_local_tasks(), 
    '#secondary' =&gt; menu_secondary_local_tasks(),
    '#tertiary' =&gt; my_module_tertiary_local_tasks(),
  );
}

/**
 * @see: menu_secondary_local_tasks()
 */
function my_module_tertiary_local_tasks() {
  // The index of local task starts from 0, so you need the 2 level of local tasks.
  $links = menu_local_tasks(2);
  // Do not display single tabs.
  return ($links['tabs']['count'] &gt; 1 ? $links['tabs']['output'] : '');
}

function my_module_preprocess_page(&amp;$vars) {
  $variables['tabs'] = my_module_menu_local_tabs();
}


All of this code based on core's localtask generation function, it's normally alterable, translation-ready, access checked:

menu_local_tabs()

menu_secondary_local_tasks()