Created
November 12, 2014 14:38
-
-
Save jameswilson/735217b9aa6abc0c4b72 to your computer and use it in GitHub Desktop.
Remove the body field from a specific content type.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remove the instance of the body field from my_content_type | |
*/ | |
function my_feature_update_7000() { | |
$instance = field_info_instance('node', 'body', 'my_content_type'); | |
field_delete_instance($instance); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment