You are here

function nopremium_node_view in Node Option Premium 7

Same name and namespace in other branches
  1. 8 nopremium.module \nopremium_node_view()

Implementation of hook_node_view().

File

./nopremium.module, line 113
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function nopremium_node_view($node, $view_mode, $langcode) {
  if ($node->premium && !nopremium_access_full_content($node)) {
    $node->content['nopremium_message'] = array(
      '#markup' => theme('nopremium_message', array(
        'node' => $node,
      )),
    );
  }
}