function i18n_menu_item_get_node in Internationalization 7
Get the node object for a menu item.
1 call to i18n_menu_item_get_node()
- i18n_menu_form_menu_edit_item_alter in i18n_menu/
i18n_menu.module - Implements hook_form_FORM_ID_alter().
File
- i18n_menu/
i18n_menu.module, line 847 - Internationalization (i18n) submodule: Menu translation.
Code
function i18n_menu_item_get_node($item) {
return isset($item['router_path']) && $item['router_path'] == 'node/%' ? node_load(arg(1, $item['link_path'])) : NULL;
}