As of Drupal 7.14, the field_bundle_settings was split into per-bundle variables.

content_migrate_install() was loading the monolithic variable, unsetting relevant parts, and resaving it when deleting a bundle. This isn't necessary, as each individual variable can be set.

Comments

tim.plunkett’s picture

Status: Active » Needs review
StatusFileSize
new2.45 KB

This should work. Untested.

mandreato’s picture

Status: Needs review » Reviewed & tested by the community

#1 seems to work apart from the last three rows which try to add a newline at the end of the file.

tim.plunkett’s picture

The file is currently missing the EOF character. In some text editors, it looks like a new line.

damienmckenna’s picture

StatusFileSize
new2.45 KB

Rerolled, just to fix the extremely minor thing Tim mentioned.

damienmckenna’s picture

BTW because the new field_bundle_settings functionality was added in 7.14 should this add a requirement so it only works with core versions >= 7.14?

colan’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Committed in 9276cd7. Feel free to submit another patch if the core version dependency is a problem.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.