function lingotek_node_settings_row in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lingotek.admin.inc \lingotek_node_settings_row()
1 call to lingotek_node_settings_row()
- lingotek_admin_entity_bundle_profiles_form in ./
lingotek.admin.inc - Content translation form
File
- ./
lingotek.admin.inc, line 401
Code
function lingotek_node_settings_row($entity_type, $bundle, $profiles, $fields, $entity_specifics) {
if ($entity_type == 'node') {
$row = array(
array(
'data' => $bundle['label'],
'width' => '20%',
),
array(
'data' => drupal_render($profiles),
),
array(
'data' => drupal_render($entity_specifics['oneoffs']),
'style' => 'text-align:center',
),
array(
'data' => drupal_render($fields),
'width' => '65%',
),
);
}
elseif ($entity_type == 'taxonomy_term') {
$row = array(
array(
'data' => $bundle['label'],
'width' => '20%',
),
array(
'data' => drupal_render($profiles),
),
array(
'data' => drupal_render($entity_specifics['translation_mode']),
'width' => '15%',
),
array(
'data' => drupal_render($entity_specifics['translation_handling']),
),
array(
'data' => drupal_render($fields),
'width' => '50%',
),
);
}
else {
$row = array(
array(
'data' => $bundle['label'],
'width' => '20%',
),
array(
'data' => drupal_render($profiles),
),
array(
'data' => drupal_render($fields),
'width' => '65%',
),
);
}
return $row;
}