function patch_manager_nodeapi in Patch manager 6
Implementation of hook_nodeapi().
File
- ./
patch_manager.module, line 144 - patch_manager.module Patch manager provides developers with tools for managing patches.
Code
function patch_manager_nodeapi(&$node, $op, $teaser) {
switch ($op) {
case 'view':
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,
);
}
}
}