You are here

function workflow_add_form in Workflow 5.2

Same name and namespace in other branches
  1. 5 workflow.module \workflow_add_form()

Create the form for adding/editing a workflow.

Parameters

$name: Name of the workflow if editing.

$add: Boolean, if true edit workflow name.

Return value

HTML form.

1 string reference to 'workflow_add_form'
workflow_menu in ./workflow.module
Implementation of hook_menu().

File

./workflow.module, line 870

Code

function workflow_add_form($name = NULL) {
  $form = array();
  $form['wf_name'] = array(
    '#type' => 'textfield',
    '#title' => t('Workflow Name'),
    '#maxlength' => '254',
    '#default_value' => $name,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Add Workflow'),
  );
  return $form;
}