You are here

function i18nmenu_menu in Internationalization 5

Same name and namespace in other branches
  1. 5.3 contrib/i18nmenu.module \i18nmenu_menu()
  2. 5.2 contrib/i18nmenu.module \i18nmenu_menu()

Implementation of hook_menu().

File

contrib/i18nmenu.module, line 12

Code

function i18nmenu_menu($may_cache) {
  static $menu_translate;
  if ($may_cache) {

    // The menu is being rebuilt. Prepares to translate on second call.
    $menu_translate = TRUE;
  }
  elseif ($menu_translate) {

    // This runs only when menu_hook is called twice
    i18nmenu_translate_all();
  }
}