function multiple_node_menu_node_prepare in Multiple Node Menu 7
Implements hook_node_prepare().
File
- ./
multiple_node_menu.module, line 85 - Add multiple menu management capabilities to node form.
Code
function multiple_node_menu_node_prepare($node) {
if (empty($node->multiple_node_menu_links) && !empty($node->nid)) {
$node->multiple_node_menu_links = _multiple_node_menu_load($node);
}
if (empty($node->multiple_node_menu_links)) {
$node->multiple_node_menu_links = array();
}
// Initialize array that holds deleted items.
if (empty($node->multiple_node_menu_links_deleted)) {
$node->multiple_node_menu_links_deleted = array();
}
}