I'm developing a module that exposes a node type (by the usual hook_node_info()
and hook_install()
) and a set of custom fields.
I would like to programmatically define what/how those fields have to be shown in the node views (at least "full"). For example: the field XYZ should be hidden in the "full" mode, and the field ABC should have the lable inline (I'm able to do this by UI, but I would like to define it programmatically).
In any case my need is to exactly modify the view mode (not to always hide a field), in order to allow users to modify the default visualisation way after installation, if necessary.
I can't figure what hook I have to implement, or what code I have to write in the hook_install
.
Thank you for your help