Skip to main content
2 of 5
added 4 characters in body
Krishna Mohan
  • 6.3k
  • 9
  • 30
  • 55

If you use entity translation and the node is attached to different menus here is a code that works

if (function_exists('menu_node_get_links')) {
global $language;
$lang = $language->language;
$node = node_load(intval(4));
if (isset($node->menu_node_links)) {
  foreach ($node->menu_node_links as $mlid => $data) {
    if ($mlid->language == $data->lang) {
      return($mlid);
    }
  }
}
  }