You are here

function access_unpublished_node_view in Access unpublished 7

Implements hook_node_view().

File

./access_unpublished.module, line 57
Drupal module: Access unpublished.

Code

function access_unpublished_node_view($node) {

  // Only unpublished nodes in full page view are affected.
  if (user_access('access unpublished view hashkey') && node_is_page($node)) {
    _access_unpublished_check_hashed_link($node);
  }
}