You are here

function _nodehierarchy_get_menu in Node Hierarchy 6

Same name and namespace in other branches
  1. 5 nodehierarchy.module \_nodehierarchy_get_menu()

Find the menu ID for the given node.

3 calls to _nodehierarchy_get_menu()
nodehierarchy_nodehierarchyapi in ./nodehierarchy.module
Implementation of hook_nodehierarchyapi(). Responds to own api calls.
_nodehierarchy_create_menu in ./nodehierarchy.module
Create a menu item if the user selects one.
_nodehierarchy_get_parent_menu in ./nodehierarchy.module
Find the menu ID for parent of the given node.

File

./nodehierarchy.module, line 1062

Code

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