function revisioning_node_view in Revisioning 7
Same name and namespace in other branches
- 8 revisioning.module \revisioning_node_view()
Implements hook_node_view().
File
- ./
revisioning.module, line 483 - Allows content to be updated and reviewed before submitting it for publication, while the current live revision remains unchanged and publicly visible until the changes have been reviewed and found fit for publication by a moderator.
Code
function revisioning_node_view($node, $view_mode, $langcode) {
if (!empty($node->dont_display)) {
// Suppress "Read more".
$node->content = array();
}
}