You are here

function lingotek_get_change_workflow_form_callback in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_get_change_workflow_form_callback()
  2. 7.4 lingotek.module \lingotek_get_change_workflow_form_callback()
  3. 7.6 lingotek.module \lingotek_get_change_workflow_form_callback()

Workflow form callback.

Parameters

array $form: the form loaded

array $form_state: the form state (content)

Return value

string a workflow UUID

2 string references to 'lingotek_get_change_workflow_form_callback'
lingotek_add_workflow_settings_form in ./lingotek.module
lingotek_get_change_workflow_form in ./lingotek.module

File

./lingotek.module, line 2267

Code

function lingotek_get_change_workflow_form_callback($form, $form_state) {
  if (isset($form_state['values']['lingotek']['prefill_phases_checkbox']) && $form_state['values']['lingotek']['prefill_phases_checkbox']) {
    return array(
      $form['lingotek']['prefill_phase_select'],
      $form['lingotek']['prefill_phases_checkbox'],
      $form['lingotek']['workflow_id'],
    );
  }
  return $form['lingotek']['workflow_id'];
}