You are here

function workflow_extensions_workflow_comment_edit_form in Workflow Extensions 7

Same name and namespace in other branches
  1. 6 workflow_extensions.module \workflow_extensions_workflow_comment_edit_form()

Display a text area populated with the selected workflow log comment and allow the user to modify and save it.

1 string reference to 'workflow_extensions_workflow_comment_edit_form'
workflow_extensions_menu in ./workflow_extensions.module
Implements hook_menu().

File

./workflow_extensions.module, line 112
UI-related improvements to the Workflow module and tokens for Rules.

Code

function workflow_extensions_workflow_comment_edit_form($form, $form_state, $workflow_state_transition_record) {
  $form = array();
  $form['hid'] = array(
    '#type' => 'value',
    '#value' => $workflow_state_transition_record->hid,
  );
  $form['nid'] = array(
    '#type' => 'value',
    '#value' => $workflow_state_transition_record->nid,
  );
  $form['workflow']['workflow_comment'] = array(
    '#type' => 'textarea',
    '#title' => t('Comment'),
    '#description' => t('Modify this workflow state transition comment and press submit.'),
    '#default_value' => $workflow_state_transition_record->comment,
    '#rows' => 2,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  return $form;
}