function tmgmt_translator_labels in Translation Management Tool 7
Same name and namespace in other branches
- 8 tmgmt.module \tmgmt_translator_labels()
Returns a list of all available translator labels.
Return value
array An array containing all available translator labels.
Related topics
3 calls to tmgmt_translator_labels()
- tmgmt_handler_field_tmgmt_translator::render in views/
handlers/ tmgmt_handler_field_tmgmt_translator.inc - Render the field.
- tmgmt_job_form in ui/
includes/ tmgmt_ui.pages.inc - Entity API form the job entity.
- tmgmt_ui_translation_review_form_defaults in ui/
tmgmt_ui.module - Form wrapper callback for the job item review form.
1 string reference to 'tmgmt_translator_labels'
File
- ./
tmgmt.module, line 1045 - Main module file for the Translation Management module.
Code
function tmgmt_translator_labels() {
$labels = array();
foreach (tmgmt_translator_load_multiple(FALSE) as $translator) {
$labels[$translator->name] = $translator
->label();
}
return $labels;
}