I have a sample use case which I think others might have. I have written a platform distribution that includes a migration from its Drupal 6 version. For individual sites that use my platform, but have added extra fields to their content types, etc, they need to be able to 'alter' the platform migrations by extending the existing classes and add the support for the additional field mappings as needed. Currently I cannot find any way to do this, but I have investigated that adding an alter hook to hook_migrate_api() seems to be the best option.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1996736-hook-migrate-api-alter-do-not-test.patch | 1.61 KB | dave reid |
| #3 | 1996736-hook-migrate-api-alter-do-not-test.patch | 1.61 KB | dave reid |
| #2 | 1996736-hook-migrate-api-alter-do-not-test.patch | 1.82 KB | dave reid |
| #1 | 1996736-hook-migrate-api-alter.patch | 1.43 KB | dave reid |
Comments
Comment #1
dave reidPatch attached which adds the new alter hook. I think this is a great idea because it means that calculating dependencies works just great but I'm able to switch out the class easily:
Comment #2
dave reidPatch attached against 7.x-2.5 not for testing, but for make files only.
Comment #3
dave reidRevised and corrected version of #2 against 7.x-2.5 release.
Comment #4
dave reidI really fail at this 7.x-2.5 patch. Another try.
Comment #5
mikeryanAlter all the hooks!
Committed, thanks.