Can I change the default tab at /admin without losing access to /admin/tasks?
please find this code to do this

function hook_menu_alter(&amp;$items) {
$a_title = $items['admin']['title'];
$admin = $items['admin'];
$t_title = $items['admin/tasks']['title'];
$tasks = $items['admin/tasks'];
$i_title = $items['admin/index']['title'];
$index = $items['admin/index'];
$items['admin/tasks'] = $admin;
$items['admin/tasks']['title'] = $t_title;
$items['admin/tasks']['type'] = MENU_LOCAL_TASK;
$items['admin'] = $index;
$items['admin']['title'] = $a_title;
unset($items['admin']['type']);
unset($items['admin/index']);
$items['admin/index'] = $tasks;
$items['admin/index']['title'] = $i_title;
}