You are here

function lingotek_disassociate_all_form_submit in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.5 lingotek.admin.inc \lingotek_disassociate_all_form_submit()
  2. 7.6 lingotek.admin.inc \lingotek_disassociate_all_form_submit()

File

./lingotek.admin.inc, line 2537

Code

function lingotek_disassociate_all_form_submit($form_state, $form) {
  $doc_ids = LingotekSync::getAllLocalDocIds();
  $api = LingotekApi::instance();
  $operations = array();

  //disassociate on CMS
  LingotekSync::disassociateAllEntities();
  LingotekSync::disassociateAllSets();
  drupal_set_message(t('All local translations have been disassociated from Lingotek.'));
}