function node_is_page

cis7 node.module node_is_page($node)
cle7 node.module node_is_page($node)
elmsmedia7 node.module node_is_page($node)
icor7 node.module node_is_page($node)
meedjum_blog7 node.module node_is_page($node)
mooc7 node.module node_is_page($node)

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

Parameters

$node: A node object.

Return value

The ID of the node if this is a full page view, otherwise FALSE.

14 calls to node_is_page()
bartik_preprocess_node in themes/bartik/template.php
Override or insert variables into the node template.
blog_view in modules/blog/blog.module
Implements hook_view().
book_node_view_link in modules/book/book.module
Adds relevant book links to the node's links.
comment_node_view in modules/comment/comment.module
Implements hook_node_view().
ctools_node_content_render_node in sites/all/modules/ulmus/ctools/plugins/content_types/node_context/node_content.inc

... See full list

File

modules/node/node.module, line 1487
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);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.