You are here

function patch_manager_form in Patch manager 7

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

Implements hook_form().

File

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

Code

function patch_manager_form(&$node) {
  $type = node_type_get_type($node);
  $form['title'] = array(
    '#type' => 'textfield',
    '#description' => t('Short description of the patch.'),
    '#title' => check_plain($type->title_label),
    '#required' => TRUE,
    '#size' => 50,
    '#weight' => -6,
    '#attributes' => array(
      'style' => 'width: auto',
    ),
    '#default_value' => !empty($node->title) ? $node->title : NULL,
  );
  return $form;
}