Programmatically turn off body summary My apologies if this is a duplicate, but I spent two days using my Google-foo to find this information and never did. So, now that I've figured it out, I'll post it here.

The Question

How do I turn off the body summary programmatically?
I placed this code directly after my call to node_add_body_field('my_node_type').

  $field_instance = field_info_instance('node', 'body', 'my_node_type');
  $field_instance['settings']['display_summary'] = FALSE;
  field_update_instance($field_instance);


References


node_add_body_field()
field_info_instance()
field_update_instance()