You are here

function menu_item_post_import in Default Content 7

Same name and namespace in other branches
  1. 7.2 plugins/menu_item.inc \menu_item_post_import()

Handles the importing of menu item after the node is loaded

Convert the menu item path from machine to nid and save

File

plugins/menu_item.inc, line 43

Code

function menu_item_post_import($node) {
  if (isset($node->nid) && ($nid = $node->nid) && isset($node->link)) {
    defaultcontent_import_menu_link($node->link['identifier'], $node->link);
  }
}