You are here

function lingotek_node_settings_row in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.6 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 489

Code

function lingotek_node_settings_row($entity_type, $bundle, $profiles, $fields, $entity_specifics) {

  // REMOVED TEMPORARILY UNTIL REFACTOR OF LANGUAGE-SPECIFIC PROFILE UI IMPROVEMENTS.

  //$label = variable_get('lingotek_enable_language_specific_profiles') ? $bundle['collapsible_label'] : $bundle['label'];
  $label = '<b>' . $bundle['label'] . '</b>';
  if ($entity_type == 'taxonomy_term') {
    $row = array(
      array(
        'data' => $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' => $label,
        'width' => '20%',
      ),
      array(
        'data' => drupal_render($profiles),
      ),
      array(
        'data' => drupal_render($fields),
        'width' => '65%',
      ),
    );
  }
  return $row;
}