Closed (fixed)
Project:
Features
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2012 at 10:47 UTC
Updated:
23 Jun 2014 at 05:00 UTC
Jump to comment: Most recent
Comments
Comment #1
mpotter commentedNothing in features adds that "required" as far as I can tell from the source code. Anybody else know where this might come from? Also, be sure to use the 1.0 release and not the rc3 release.
Comment #2
Georgique commented@mpotter I'v studied Features source code and yes, I haven't found where this flag is created neither. Today upgraded Features from rc3 to stable version but still have this strange behaviour.
Comment #3
lex0r commentedCould this be a PHP version related issue?
Comment #4
milesw commentedMy feature has a custom field type defined, which I suspect is triggering the required flag. Can't figure out what's adding it, but it's doing a good job of breaking simpletests.
Comment #5
Georgique commented@milesw Mine does also have custom field type. How have you found that this is the reason?
Comment #6
milesw commentedI tracked this down to the Field module, in field_system_info_alter(). If a module implements hook_field_info() the Field module will flag it as required.
No idea what the rationale is behind this flag, but it doesn't seem to me that Features should intervene. As a workaround you can implement hook_system_info_alter() and override the flag...
That implementation needs to run after the Field module, which can be done through module weights or...
Comment #7
hefox commentedSounds good, marking this fixed for now as a fixed support request. Upping version as might as well for anyone looking for why.