Closed (fixed)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 Oct 2011 at 15:20 UTC
Updated:
28 Nov 2011 at 21:20 UTC
Jump to comment: Most recent file
There's a lot of redundant code in field handlers that could be simplified by using a base class. I based the idea off some dated code over in #943140: Support migration into phone fields but used it to simplify the value, user and node reference handlers.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | migrate_1321062.patch | 1.57 KB | drewish |
| #2 | migrate_1321062.patch | 6.04 KB | drewish |
| migrate_simple_field_handler.patch | 5.63 KB | drewish |
Comments
Comment #1
mikeryanFixed a missing $field_info parameter to prepare(), committed to D7 and backported to D6 as well. Thanks!
Comment #2
drewish commentedAh, yeah looks like I'd fixed some bugs in that but forgot to push out a new patch. Here's my fixed one.
Comment #3
drewish commentedMike, any reason you don't like the @code syntax used by core?
Comment #4
drewish commentedHere's a patch with the corrected docs.
Comment #5
mikeryanNothing personal against @code, just don't usually think of it...
Committed to D6 and D7, thanks!
Comment #6
drewish commented