function tmgmt_translator_labels

Returns a list of all available translator labels.

Return value

array An array containing all available translator labels.

Related topics

1 string reference to 'tmgmt_translator_labels'

File

./tmgmt.module, line 503
Main module file for the Translation Management module.

Code

function tmgmt_translator_labels() {
  $labels = array();
  foreach (Translator::loadMultiple() as $translator) {
    $labels[$translator
      ->id()] = $translator
      ->label();
  }
  return $labels;
}