You are here

function lingotek_get_node_settings_form_submit in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_get_node_settings_form_submit()
  2. 7.5 lingotek.module \lingotek_get_node_settings_form_submit()
  3. 7.6 lingotek.module \lingotek_get_node_settings_form_submit()
1 string reference to 'lingotek_get_node_settings_form_submit'
lingotek_get_node_settings_form in ./lingotek.module

File

./lingotek.module, line 1040

Code

function lingotek_get_node_settings_form_submit($form, $form_state) {
  if (isset($form_state['nids']) && !empty($form_state['nids'])) {
    $nids = $form_state['nids'];

    // YOU LEFT OFF HERE, SEND UP THE CALL TO UPDATE THE WORKFLOW_ID FOR EACH NODE ALREADY UPLOADED
    foreach ($nids as $nid) {
      $node = node_load($nid);
      $node->lingotek = array_replace($node->lingotek, $form_state['values']['lingotek']);
      node_save($node);
    }
  }
}