When hook_installing a new custom node type filled with custom fields I call field_create_instance($instance)
where I also set the custom fields' display like so:
'display' => array(
'default' => array( // view mode
'label' => 'hidden',
'type' => 'text_default'
),
'teaser' => array( // view mode
'label' => 'hidden',
'type' => 'hidden'
)
)
I also added a body field via node_add_body_field($type)
but where can I set that body's display properties programmatically? Per default it's set to be displayed in the teaser view. I want to hide it.