I'm currently working a custom user registration module for a project I'm busy with. I need to add a boolean field which will be attached to user entities. The value will just serve as a flag to check whether a user has answered a CAPTCHA question as a final step of registration. I've been trying to define a boolean field which should have no widget selection dropdown or edit / delete operations within the "Manage fields" section for users.
It seems that the best way to define the field would be during hook_enable or hook_field_schema (inside your .install file), but I'm confused as to what the best practise is.
Also, is there anyway to give the database table a better name when defining your field? I find the table prefix for fields "field_data_xx" pretty confusing if you're defining numerous custom fields.
Thanks in advance :)