File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments