menu_node_exists

Versions
menu_node
menu_node_exists($nid, $mlid)

Check to see if a specific nid/mlid combination exists.

Parameters

$nid The node id.

$mlid The menu link id.

Return value

The count of matches (which should be 1 or 0).

Code

./menu_node.module, line 312

<?php
function menu_node_exists($nid, $mlid) {
  return db_result(db_query("SELECT COUNT(nid) FROM {menu_node} WHERE nid = %d AND mlid = %d", $nid, $mlid));
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List