function _nodehierarchy_get_node_mlids in Node Hierarchy 6.3
Same name and namespace in other branches
- 6.2 nodehierarchy.module \_nodehierarchy_get_node_mlids()
- 7.2 nodehierarchy.module \_nodehierarchy_get_node_mlids()
Get the menu link id for the given node.
2 calls to _nodehierarchy_get_node_mlids()
- nodehierarchy_delete_node_nodehierarchy_menu_links in ./
nodehierarchy.module - Delete all link from the node to its menu items.
- _nodehierarchy_get_descendant_count in ./
nodehierarchy.module - Count the descendants of the given node.
File
- ./
nodehierarchy.module, line 1291 - A module to make nodes hierarchical.
Code
function _nodehierarchy_get_node_mlids($nid) {
$out = array();
$result = db_query("SELECT mlid FROM {menu_links} WHERE module = 'nodehierarchy' AND link_path = 'node/%d' ORDER BY mlid", $nid);
while ($link = db_fetch_array($result)) {
$out[] = $link['mlid'];
}
return $out;
}