You are here

function globallink_interface_get_submission_status in GlobalLink Connect for Drupal 7.6

Gets interface submission status.

1 call to globallink_interface_get_submission_status()
globallink_interface_locale_languages in globallink_interface/globallink_interface.inc
Gets status for each language to be translated into.

File

globallink_interface/globallink_interface.inc, line 193

Code

function globallink_interface_get_submission_status($lid, $locale_code) {
  $result = db_select('globallink_core_interface', 'tci')
    ->fields('tci', array(
    'status',
  ))
    ->condition('object_id', $lid, '=')
    ->condition('target', $locale_code, '=')
    ->execute();
  while ($record = $result
    ->fetchAssoc()) {
    return $record;
  }
}