Skip to content

Commit

Permalink
#293: swapping out theme call for render array to make the action lin…
Browse files Browse the repository at this point in the history
…ks infinitely more adjustable.
  • Loading branch information
Josh Walker committed Sep 28, 2016
1 parent e4894f2 commit 9f6fdb8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ function kalatheme_process_page(&$variables) {

// Add local actions as the last item in the local tasks.
if (!empty($variables['action_links'])) {
$variables['tabs']['#primary'][]['#markup'] = theme('menu_local_actions', array('menu_actions' => $variables['action_links'], 'attributes' => $dropdown_attributes));
$variables['tabs']['#primary'][] = array(
'#theme' => 'menu_local_actions',
'#menu_actions' => $variables['action_links'],
'#attributes' => $dropdown_attributes,
);
$variables['action_links'] = FALSE;
}

Expand Down Expand Up @@ -212,7 +216,7 @@ function kalatheme_preprocess_page(&$variables) {
// Get the menu tree for the menu that is set as 'Source for the Main links'.
$main_links_menu = variable_get('menu_main_links_source', 'main-menu');
$main_menu_tree = menu_tree_all_data($main_links_menu, NULL, 2);

// Add the rendered output to the $main_menu_expanded variable.
$main_menu_expanded = menu_tree_output($main_menu_tree);

Expand Down

0 comments on commit 9f6fdb8

Please sign in to comment.