You are here

function _i18n_menu_link_is_visible in Internationalization 7

Check whether this menu link is visible for current/given language.

2 calls to _i18n_menu_link_is_visible()
i18n_menu_localize_tree in i18n_menu/i18n_menu.module
Localize menu tree.
i18n_menu_translated_menu_link_alter in i18n_menu/i18n_menu.module
Implements hook_translated_menu_link_alter().

File

i18n_menu/i18n_menu.module, line 596
Internationalization (i18n) submodule: Menu translation.

Code

function _i18n_menu_link_is_visible($link, $langcode = NULL) {
  $langcode = $langcode ? $langcode : i18n_language_interface()->language;
  return $link['language'] == LANGUAGE_NONE || $link['language'] == $langcode;
}