function lingotek_get_language_specific_labels in Lingotek Translation 7.7
1 call to lingotek_get_language_specific_labels()
- lingotek_admin_entity_bundle_profiles_form in ./
lingotek.admin.inc - Content translation form
File
- ./
lingotek.admin.inc, line 3069
Code
function lingotek_get_language_specific_labels($entity_type, $bundle, $languages) {
$label = array(
'#type' => 'fieldset',
'#title' => $bundle['label'],
'#tree' => TRUE,
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#attributes' => array(
'class' => array(
'collapsible',
'collapsed',
),
'name' => $entity_type . '_languages',
'style' => 'border: none;',
),
);
foreach ($languages as $k => $v) {
$label[$k] = array(
'#type' => 'markup',
'#markup' => '<div name="' . $entity_type . '_language" style="float: none;">' . $v->native . ' (source)</div>',
);
}
return $label;
}