function menu_node_exists in Menu Node API 6
Same name and namespace in other branches
- 7 menu_node.module \menu_node_exists()
Check to see if a specific mlid exists.
Parameters
$mlid: The menu link id.
Return value
The count of matches (which should be 1 or 0).
1 call to menu_node_exists()
- menu_node_save in ./
menu_node.module - Save records to the {menu_node} table.
File
- ./
menu_node.module, line 320 - Menu Node API Manages relationships between the {node} and {menu_links} table.
Code
function menu_node_exists($mlid) {
return db_result(db_query("SELECT COUNT(mlid) FROM {menu_node} WHERE mlid = %d", $mlid));
}