Skip to content

Commit 2488707

Browse files
authored
Merge pull request #294 from drupalprojects/7.x-3.x--293-action-links
action links render array
2 parents e4894f2 + 9f6fdb8 commit 2488707

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

template.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ function kalatheme_process_page(&$variables) {
162162

163163
// Add local actions as the last item in the local tasks.
164164
if (!empty($variables['action_links'])) {
165-
$variables['tabs']['#primary'][]['#markup'] = theme('menu_local_actions', array('menu_actions' => $variables['action_links'], 'attributes' => $dropdown_attributes));
165+
$variables['tabs']['#primary'][] = array(
166+
'#theme' => 'menu_local_actions',
167+
'#menu_actions' => $variables['action_links'],
168+
'#attributes' => $dropdown_attributes,
169+
);
166170
$variables['action_links'] = FALSE;
167171
}
168172

@@ -212,7 +216,7 @@ function kalatheme_preprocess_page(&$variables) {
212216
// Get the menu tree for the menu that is set as 'Source for the Main links'.
213217
$main_links_menu = variable_get('menu_main_links_source', 'main-menu');
214218
$main_menu_tree = menu_tree_all_data($main_links_menu, NULL, 2);
215-
219+
216220
// Add the rendered output to the $main_menu_expanded variable.
217221
$main_menu_expanded = menu_tree_output($main_menu_tree);
218222

0 commit comments

Comments
 (0)