function patch_manager_node_actions_form in Patch manager 6
Same name and namespace in other branches
- 7 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_nodeapi in ./
patch_manager.module - Implementation of hook_nodeapi().
File
- ./
patch_manager.module, line 289 - patch_manager.module Patch manager provides developers with tools for managing patches.
Code
function patch_manager_node_actions_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;
}