You are here

function lingotek_event_complete in Lingotek Translation 6

File

./lingotek.util.inc, line 198
Utilities

Code

function lingotek_event_complete($node) {
  $result = FALSE;
  if (!lingotek_lingonode($node->nid, 'finished')) {
    $result = lingotek_lingonode($node->nid, 'percent_complete') == "100";
    if ($result) {
      lingotek_lingonode($node->nid, 'finished', TRUE);
    }
  }
  return $result;
}