You are here

function patch_manager_node_view in Patch manager 7

Implements hook_node_view().

File

./patch_manager.module, line 150
Patch manager provides developers with tools for managing patches.

Code

function patch_manager_node_view($node, $view_mode = 'full') {
  if ($node->type === 'patch' && user_access('administer patch manager')) {
    $form = drupal_get_form('patch_manager_node_actions_form', $node);
    $node->content['patch_manager'] = array(
      '#value' => $form,
    );
  }
}