patched field_group module for php7 compatibility
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git a/field_group.module b/field_group.module
|
||||
index 412825f..4061519 100644
|
||||
--- a/field_group.module
|
||||
+++ b/field_group.module
|
||||
@@ -2258,7 +2258,7 @@ function field_group_field_group_to_hook_code($data, $module) {
|
||||
$code .= " \${$export['identifier']}s = array();\n\n";
|
||||
foreach ($objects as $object) {
|
||||
$code .= ctools_export_object('field_group', $object, ' ');
|
||||
- $code .= " \${$export['identifier']}s['" . check_plain($object->$export['key']) . "'] = \${$export['identifier']};\n\n";
|
||||
+ $code .= " \${$export['identifier']}s['" . check_plain($object->{$export['key']}) . "'] = \${$export['identifier']};\n\n";
|
||||
if (!empty($object->data['label'])) {
|
||||
$translatables[] = $object->data['label'];
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Field group
|
||||
compatibility with php 7
|
||||
https://www.drupal.org/node/2661484
|
||||
@@ -2258,7 +2258,7 @@ function field_group_field_group_to_hook_code($data, $module) {
|
||||
$code .= " \${$export['identifier']}s = array();\n\n";
|
||||
foreach ($objects as $object) {
|
||||
$code .= ctools_export_object('field_group', $object, ' ');
|
||||
$code .= " \${$export['identifier']}s['" . check_plain($object->$export['key']) . "'] = \${$export['identifier']};\n\n";
|
||||
$code .= " \${$export['identifier']}s['" . check_plain($object->{$export['key']}) . "'] = \${$export['identifier']};\n\n";
|
||||
if (!empty($object->data['label'])) {
|
||||
$translatables[] = $object->data['label'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user