You are here

function drush_lingotek_cleanup in Lingotek Translation 7.7

Callback function for drush command lt-cleanup

File

./lingotek.drush.inc, line 185
Drush command file

Code

function drush_lingotek_cleanup($entity_type) {
  try {
    $batch = lingotek_field_language_data_cleanup_batch_create($entity_type, FALSE);
    batch_set($batch);
    drush_backend_batch_process();
  } catch (Exception $e) {
    drush_set_error('lt-cleanup', $e
      ->getMessage());
  }
}