You are here

function workbench_moderation_node_view in Workbench Moderation 7

Same name and namespace in other branches
  1. 7.3 workbench_moderation.module \workbench_moderation_node_view()
  2. 7.2 workbench_moderation.module \workbench_moderation_node_view()

Implements hook_node_view().

Display messages about the node's moderation state.

File

./workbench_moderation.module, line 781
Content moderation for Workbench.

Code

function workbench_moderation_node_view($node, $view_mode = 'full') {

  // Show moderation state messages if we're on a node page.
  if (node_is_page($node) && $view_mode == 'full' && empty($node->in_preview)) {
    workbench_moderation_messages('view', $node);
  }
}