From: Marc Ferran (aka Markus) Date: Tue, 3 Nov 2009 19:04:09 +0000 (+0000) Subject: - #577590 Add a visual indication to the fieldgroup title if the multigroup is required. X-Git-Tag: 6.x-3.0-alpha1~53 X-Git-Url: http://drupalcode.org/project/cck.git/commitdiff_plain/1b9318417bba17cd1362a94efaccc9e97fa5b768 - #577590 Add a visual indication to the fieldgroup title if the multigroup is required. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4f4c8f2..50b1f71 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -69,6 +69,7 @@ Bugfixes: - #538458 Do not allow to change the widget type for fields in multigroups when the change is not compatible. - #604830 by mattyoung - 32 characters limit on field and group identifiers in "Manage fields" screen. - #464030 by eojthebrave - Typo in content_copy.module help. +- #577590 Add a visual indication to the fieldgroup title if the multigroup is required. Changes: - #421116 Move content.js to js/content.admin.js for consistency with location of new js files. diff --git a/modules/content_multigroup/content_multigroup.node_form.inc b/modules/content_multigroup/content_multigroup.node_form.inc index 22199c1..3180421 100644 --- a/modules/content_multigroup/content_multigroup.node_form.inc +++ b/modules/content_multigroup/content_multigroup.node_form.inc @@ -79,6 +79,11 @@ function _content_multigroup_fieldgroup_form(&$form, &$form_state, $form_id, $gr } $form['#multigroups'][$group_name] = $group_fields; + // Add a visual indication to the fieldgroup title if the multigroup is required. + if (!empty($group['settings']['multigroup']['required'])) { + $form[$group_name]['#title'] .= ' *'; + } + // Attach our own after build handler to the form, used to fix posting data // and the form structure, moving fields back to their original positions. // That is, move them from group->delta->field back to field->delta.