You are here

function patch_manager_node_actions_form in Patch manager 7

Same name and namespace in other branches
  1. 6 patch_manager.module \patch_manager_node_actions_form()

Provide a form for nodes to perform simple actions

1 string reference to 'patch_manager_node_actions_form'
patch_manager_node_view in ./patch_manager.module
Implements hook_node_view().

File

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

Code

function patch_manager_node_actions_form($form, $form_state, $node) {
  $form = array();
  $form['#node'] = $node;
  $form['patch_manager_apply'] = array(
    '#type' => 'submit',
    '#value' => 'Apply patch',
    '#submit' => array(
      'patch_manager_node_actions_form_apply_submit',
    ),
  );
  $form['patch_manager_revert'] = array(
    '#type' => 'submit',
    '#value' => 'Revert patch',
    '#submit' => array(
      'patch_manager_node_actions_form_reverse_submit',
    ),
  );
  return $form;
}