function seven_preprocess_page

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'],
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.