Closed (fixed)
Project:
Features
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2013 at 20:03 UTC
Updated:
21 Jun 2014 at 21:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hefox commentedI've been using it fine and knowing the code, I don't see know where there would be a bug so my guess it's something with your setup
However, note that 'field' is depacated in 2.x and has been replaced with field_instance and field_base components, are you sure you're using the right hook?
Comment #2
nadavoid commentedI bet you're right, that I'm using the wrong hook. But I'm sure I'm using what's currently documented in features.api.php. Maybe this needs to be a documentation update? I'll try some other hooks... Should I replace "field" or "fields" with "field_instance"? (e.g. hook_field_instance_default_fields_alter() or hook_field_default_field_instances_alter().)
Comment #3
nadavoid commentedIt looks like it should be hook_field_default_field_instances_alter() and hook_field_default_field_bases_alter(). So features.api.php should be updated since it still only has a reference to the older, combined hook: hook_field_default_fields_alter. That should be replaced by the two new hooks. Besides that, should the documentation remain the same? (e.g.
&$fieldsgetting passed by reference?)Setting it back to "active" since it's pretty clear this is just a documentation update now.
Comment #4
hefox commentedhook_field_default_fields_alter does still exist since field component exists, but deprecated
Comment #5
hefox commentedComment #6
mariacha1 commentedHere's my simple update to the documentation in features.api.php. Is there anywhere else the documentation should be updated?
Comment #8
mariacha1 commented6: features-update_hook_field_default_doc-2085159-6.patch queued for re-testing.
Comment #10
djdevinCan we get this committed? Docs look good.
Lost sanity over this one.
Comment #11
hefox commented6: features-update_hook_field_default_doc-2085159-6.patch queued for re-testing.
Comment #12
hefox commentedthanks