Skip to content

Commit

Permalink
fix .info, fix deleting field_group when deleting bundle, fix implode
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool committed Feb 12, 2022
1 parent ff49e69 commit 1255f9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions field_group.info
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ package = Fields
backdrop = 1.x
type = module
dependencies[] = field
files[] = tests/field_group.ui.test
files[] = tests/field_group.display.test
5 changes: 2 additions & 3 deletions field_group.module
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function field_group_field_attach_delete_bundle($entity_type, $bundle) {
if (isset($list[$entity_type], $list[$entity_type][$bundle])) {
foreach ($list[$entity_type][$bundle] as $group_mode => $groups) {
foreach ($groups as $group) {
$config = config('field_group.field_group.' . $entity_type . '.' . $bundle_name . '.' . $mode . '.' . $group_name);
$config = config('field_group.field_group.' . $entity_type . '.' . $bundle . '.' . $group_mode . '.' . $group->group_name);
$config->delete();
}
}
Expand Down Expand Up @@ -1315,7 +1315,6 @@ function field_group_remove_empty_display_groups(& $element, $groups) {
function field_group_field_group_format_summary($group) {

$group_form = module_invoke_all('field_group_format_settings', $group);

$output = '';
if (isset($group->format_settings['formatter'])) {
$output .= '<strong>' . $group->format_type . '</strong> ' . $group->format_settings['formatter'] . '';
Expand All @@ -1332,7 +1331,7 @@ function field_group_field_group_format_summary($group) {

if (isset($group_form['instance_settings'], $group_form['instance_settings'][$key]['#options'])) {
if (is_array($value)) {
$value = implode(array_filter($value), ', ');
$value = implode(', ', array_filter($value));
}
else {
$value = $group_form['instance_settings'][$key]['#options'][$value];
Expand Down

0 comments on commit 1255f9e

Please sign in to comment.