I think it would be preferable to have the title of the field collection above the table, rather than in the initial header cell.

  • Long titles stretch the width of the weight drag/drop column
  • There's a suggestion that the title is referring to the contents of the column.

I achieved this the following way:

Line 77 of theme.inc:

from:


        'data' => '<label>' . t('!title: !required', array('!title' => $element['#title'], '!required' => $required)) . "</label>",

to:

        'data' => '<label>' . t('') . "</label>",

Between line 108 / 109 the addition of:

    $output[] = array(
      '#prefix' => '<label>',
      '#suffix' => '</label>',
      '#markup' => t($variables['element']['#title']),
    );

If anyone else thinks it's a good idea, I can create a patch.

Comments

tim.plunkett’s picture

Status: Active » Closed (duplicate)