function workbench_moderation_node_view in Workbench Moderation 7.2
Same name and namespace in other branches
- 7.3 workbench_moderation.module \workbench_moderation_node_view()
- 7 workbench_moderation.module \workbench_moderation_node_view()
Implements hook_node_view().
Display messages about the node's moderation state.
File
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);
}
}