Background: I'm writing a module that will hopefully make reverse-engineering specs for site audits easier. (If you're interested, you can see the Topograph module-in-progress on my Github account.)
Basically it's a bunch of byzantine views that use custom handlers to pull things like serialized data out of the DB to display stuff like nodetype settings to the admin user.
I'm having a lot of trouble finding certain things, though. Fieldset info is a major one, as well as settings like whether the field is required. I'm not finding it in the blob of data pulled from the {field_config_instance}
table (though I might be overlooking it). Can someone point me to where this info can be retrieved per nodetype/field instance?
required
setting, if the parent field element options are altered in any way for a bundle (because fields can exist in many bundles) ... so i'm not sure you can rely on looking at 1 SQL table. thats whyfield_get_info()
exists.field_info_field()
, doesn't seem to have fieldset or required info in the return value.field_info_instance()
should do it, the 'required' setting is under 'settings' in that array. By fieldset info do you mean the stuff field_group provides? If so that's in the field_group table. If you're looking at the db structure in a GUI it's easy to miss the field_group table, it gets buried in amongst the field data/revision tables