You are here

function _i18n_menu_link_check_alter in Internationalization 7

Check whether this menu item should be marked for altering.

Menu items that have a language or that have any localizable strings will be marked to be run through hook_translated_menu_link_alter().

See also

i18n_menu_translated_menu_link_alter()

2 calls to _i18n_menu_link_check_alter()
i18n_menu_menu_link_update in i18n_menu/i18n_menu.module
Implements hook_menu_link_update().
i18n_menu_update_7001 in i18n_menu/i18n_menu.install
Set alter property for menu items with language.

File

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

Code

function _i18n_menu_link_check_alter($link) {
  return i18n_menu_mode($link['menu_name']) && (i18n_object_langcode($link) || _i18n_menu_link_is_localizable($link, TRUE));
}