You are here

function revisioning_field_attach_view_alter in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning.module \revisioning_field_attach_view_alter()

Implements hook_field_attach_view_alter().

File

./revisioning.module, line 474
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_field_attach_view_alter(&$output, $context) {
  if ($context['entity_type'] == 'node' && !empty($context['entity']->dont_display)) {
    $output = array();
  }
}