You are here

public function LingotekApi::removeDocument in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.3 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::removeDocument()
  2. 7.4 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::removeDocument()
  3. 7.6 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::removeDocument()

File

lib/Drupal/lingotek/LingotekApi.php, line 171
Defines Drupal\lingotek\LingotekApi

Class

LingotekApi
@file Defines Drupal\lingotek\LingotekApi

Code

public function removeDocument($document_id) {
  $success = FALSE;
  if ($document_id) {
    $result = $this
      ->request('removeDocument', array(
      'documentId' => $document_id,
    ));
    if ($result) {
      $success = TRUE;
    }
  }
  return $success;
}