You are here

function helper_node_view in Helper 7

Implements hook_node_view().

File

./helper.node.inc, line 28
Node hooks implemented by the Helper module.

Code

function helper_node_view($node, $view_mode, $langcode) {

  // Add an unpublished comment summary link to the node.
  if (module_exists('comment') && helper_is_tweak_enabled('node_comment_unpublished_count') && $view_mode == 'teaser' && !empty($node->comment_unpublished_count)) {
    _helper_node_add_unpublished_comments_link($node, $langcode);
  }
}