You are here

function lingotek_get_change_workflow_form_callback in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_get_change_workflow_form_callback()
  2. 7.5 lingotek.module \lingotek_get_change_workflow_form_callback()
  3. 7.6 lingotek.module \lingotek_get_change_workflow_form_callback()
2 string references to 'lingotek_get_change_workflow_form_callback'
lingotek_form_node_form_alter in ./lingotek.module
Implements hook_form_BASE_FORM_ID_alter().
lingotek_get_change_workflow_form in ./lingotek.module

File

./lingotek.module, line 2223

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'];
}