Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Update Field Collection from 1.0-beta11 to 1.0-beta12
Entity Translation has finally been merged which we have been early adopters on. There is a minor hook_update_n correction to resolve and upgrade path issues as well.
/**
* Updates to Field Collection and schema alignment with v1.0-beta12
*/
function wetkit_core_update_7407() {
// We were early adopters of Entity Translation integration:
// http://drupal.org/files/issues/field_collection_field-1344672-510.patch
// However a different hook_update_n was committed before patch merged so
// we are ensuring that the new code in past hook gets called.
$field_collection_version = drupal_get_installed_schema_version('field_collection');
// Run only when Field Collection version < 7008.
if ($field_collection_version < '7008') {
drupal_set_installed_schema_version('field_collection', '7006');
}
}
Comments
Comment #3
sylus CreditAttribution: sylus commented