X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fmetatag%2Fmetatag.install;h=2f96a4941fd73760f27f5bed1c4cbc7c1357d284;hp=5fe86ac5d910f30fd43677e0bde9e05a667911f2;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/metatag/metatag.install b/web/modules/contrib/metatag/metatag.install index 5fe86ac5d..2f96a4941 100644 --- a/web/modules/contrib/metatag/metatag.install +++ b/web/modules/contrib/metatag/metatag.install @@ -59,7 +59,7 @@ function metatag_update_8101() { ->getStorage('field_storage_config') ->loadByProperties(['type' => 'metatag']); - foreach ($field_storage_configs as $key => $field_storage) { + foreach ($field_storage_configs as $field_storage) { $field_name = $field_storage->getName(); // Get the individual fields (field instances) associated with bundles. @@ -75,7 +75,6 @@ function metatag_update_8101() { // Get the default value for this field on this bundle. $field_default_tags_value = $field->getDefaultValueLiteral(); $field_default_tags_value = $field_default_tags_value[0]['value']; - $field_default_tags = unserialize($field_default_tags_value); // Determine the table and "value" field names. $field_table = "node__" . $field_name; @@ -112,7 +111,7 @@ function metatag_update_8102(&$sandbox) { ->getStorage('field_storage_config') ->loadByProperties(['type' => 'metatag']); - foreach ($field_storage_configs as $key => $field_storage) { + foreach ($field_storage_configs as $field_storage) { $field_name = $field_storage->getName(); // Get the individual fields (field instances) associated with bundles. @@ -286,7 +285,7 @@ function metatag_update_8103() { ->getStorage('field_storage_config') ->loadByProperties(['type' => 'metatag']); - foreach ($field_storage_configs as $key => $field_storage) { + foreach ($field_storage_configs as $field_storage) { $field_name = $field_storage->getName(); // Get the individual fields (field instances) associated with bundles.