function seven_preprocess_page in Drupal 7
Override or insert variables into the page template.
File
- 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'],
);
}