You are here

function globallink_webform_locale_languages in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 globallink_webform/globallink_webform.inc \globallink_webform_locale_languages()

Gets status for each language to be translated into.

Parameters

string $lid: The webform LID.

Return value

string String of languages and their respective statuses.

File

globallink_webform/globallink_webform.inc, line 349

Code

function globallink_webform_locale_languages($lid) {
  $mapped_locales = globallink_get_mapped_locales_with_drupal_desc(TRUE);
  $translation_status = '';
  foreach ($mapped_locales as $code => $locale) {
    $result = globallink_webform_get_submission_status($lid, $code);
    if ($result) {
      $translation_status .= $locale . ' - ' . $result['status'] . '<br />';
    }
  }
  return $translation_status;
}