function lingotek_translate_menu_link in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.module \lingotek_translate_menu_link()
- 7.6 lingotek.module \lingotek_translate_menu_link()
Determine whether the menu link should be translated.
Parameters
object $link: the link object to be checked
Return value
bool TRUE or FALSE
2 calls to lingotek_translate_menu_link()
- lingotek_menu_link_update in ./
lingotek.module - Implements hook_menu_link_update().
- lingotek_node_presave in ./
lingotek.module - Implements hook_node_presave.
File
- ./
lingotek.module, line 2345
Code
function lingotek_translate_menu_link($link) {
// Handle new link creation.
if (isset($link['lingotek_translate']) && $link['lingotek_translate'] == LANGUAGE_NONE) {
return TRUE;
}
// Handle link update.
if ($link['language'] == LANGUAGE_NONE) {
return TRUE;
}
return FALSE;
}