Commit 3d82aba6 authored by Tim Plunkett's avatar Tim Plunkett
Browse files

Issue #1314796 by drikc: Added label for single value embedded Field Collections.

parent 5a65b471
......@@ -974,6 +974,10 @@ function field_collection_field_widget_form(&$form, &$form_state, $field, $insta
'#parents' => $parents,
);
if ($field['cardinality'] == 1) {
$element['#type'] = 'fieldset';
}
$field_state = field_form_get_state($field_parents, $field_name, $language, $form_state);
if (isset($field_state['entity'][$delta])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment