Commit 32f75692 authored by develCuy's avatar develCuy

BUGS FIXING

- Using hook_menu and hook_footer, but is performance killer. Giving it a try for a while
parent 2de316cd
......@@ -69,7 +69,21 @@ function menu_token_item_delete_form_submit($form_id, $form_values) {
/**
* Implementation of hook_footer().
*/
function menu_token_footer() {
menu_token_replace();
}
/**
* Implementation of hook_menu().
*/
function menu_token_menu($may_cache) {
menu_token_replace();
return array();
}
/**
* Make token replacements in menu items.
*/
function menu_token_replace() {
global $_menu;
$token_enabled = variable_get('menu_token_enabled', array());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment