You are here

function _nodehierarchy_get_child_menu in Node Hierarchy 6

Find the menu ID for the given node with the given parent menu ID.

1 call to _nodehierarchy_get_child_menu()
_nodehierarchy_set_menu_order in ./nodehierarchy.module
Reorder the child menus of the given parent.

File

./nodehierarchy.module, line 1083

Code

function _nodehierarchy_get_child_menu($nid, $plid = NULL) {
  return db_fetch_array(db_query_range("SELECT mlid FROM {menu_links} WHERE link_path = '%s' AND plid = '%d'", "node/{$nid}", $plid, 0, 1));
}