function workflow_add_form in Workflow 5
Same name and namespace in other branches
- 5.2 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 640
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;
}