You are here

function workflow_transition_form in Workflow 7.2

3 calls to workflow_transition_form()
WorkflowDefaultWidget::formElement in includes/Field/WorkflowDefaultWidget.php
Implements hook_field_widget_form --> WidgetInterface::formElement().
workflow_transition_wrapper_form in ./workflow.form.inc
Form builder. Allow workflow comment change from menu item/Views link.
_workflownode_form_alter in workflow_node/workflownode.module
Helper function to implement hook_form_alter().
9 string references to 'workflow_transition_form'
workflowfield_field_formatter_view in workflow_field/workflowfield.formatter.inc
Implements hook_field_formatter_view().
workflownode_node_view in workflow_node/workflownode.module
Implements hook_node_view().
WorkflowTransitionForm::buildForm in includes/Form/WorkflowTransitionForm.php
_state
WorkflowTransitionForm::getFormId in includes/Form/WorkflowTransitionForm.php
workflow_block_view in ./workflow.block.inc
Implements hook_block_view().

... See full list

File

./workflow.form.inc, line 193
Contains helper functions for WorkflowTransitionForm.

Code

function workflow_transition_form(array $form, array &$form_state, array $field, $instance, $entity_type, $entity) {
  if (!isset($instance['widget']['settings']['submit_function'])) {
    $instance['widget']['settings']['submit_function'] = 'workflow_transition_form_submit';
  }
  $transition_form = new WorkflowTransitionForm($field, $instance, $entity_type, $entity);
  return $transition_form
    ->buildForm($form, $form_state);
}