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) {
162
162
163
163
// Add local actions as the last item in the local tasks.
164
164
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
+ );
166
170
$ variables ['action_links ' ] = FALSE ;
167
171
}
168
172
@@ -212,7 +216,7 @@ function kalatheme_preprocess_page(&$variables) {
212
216
// Get the menu tree for the menu that is set as 'Source for the Main links'.
213
217
$ main_links_menu = variable_get ('menu_main_links_source ' , 'main-menu ' );
214
218
$ main_menu_tree = menu_tree_all_data ($ main_links_menu , NULL , 2 );
215
-
219
+
216
220
// Add the rendered output to the $main_menu_expanded variable.
217
221
$ main_menu_expanded = menu_tree_output ($ main_menu_tree );
218
222
You can’t perform that action at this time.
0 commit comments