function seven_preprocess_page

7.x template.php seven_preprocess_page(&$vars)

Override or insert variables into the page template.

File

drupal/themes/seven/template.php, line 30

Code

function seven_preprocess_page(&$vars) {
  $vars['primary_local_tasks'] = $vars['tabs'];
  unset($vars['primary_local_tasks']['#secondary']);
  $vars['secondary_local_tasks'] = array(
    '#theme' => 'menu_local_tasks',
    '#secondary' => $vars['tabs']['#secondary'],
  );
}