node_is_page

7 node.module node_is_page($node)
8 node.module node_is_page(Node $node)

Returns whether the current page is the full page view of the passed-in node.

Parameters

$node: A node object.

8 calls to node_is_page()

File

modules/node/node.module, line 1419
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function node_is_page($node) {
  $page_node = menu_get_object();
  return (!empty($page_node) ? $page_node->nid == $node->nid : FALSE);
}
Login or register to post comments