diff --git a/modules/comment.info.inc b/modules/comment.info.inc index 663c09c..633d235 100644 --- a/modules/comment.info.inc +++ b/modules/comment.info.inc @@ -157,16 +157,4 @@ function entity_metadata_comment_entity_property_info_alter(&$info) { 'type' => 'integer', ); - // The comment body field is usually available for all bundles, so add it - // directly to the comment entity. - $info['comment']['properties']['comment_body'] = array( - 'type' => 'text_formatted', - 'label' => t('The main body text'), - 'getter callback' => 'entity_metadata_field_verbatim_get', - 'setter callback' => 'entity_metadata_field_verbatim_set', - 'property info' => entity_property_text_formatted_info(), - 'field' => TRUE, - 'required' => TRUE, - ); - unset($info['comment']['properties']['comment_body']['property info']['summary']); } diff --git a/modules/node.info.inc b/modules/node.info.inc index f146a7e..3b8508a 100644 --- a/modules/node.info.inc +++ b/modules/node.info.inc @@ -146,27 +146,3 @@ function entity_metadata_node_entity_property_info() { ); return $info; } - -/** - * Implements hook_entity_property_info_alter() on top of node module. - * @see entity_metadata_entity_property_info_alter() - */ -function entity_metadata_node_entity_property_info_alter(&$info) { - // Move the body property to the node by default, as its usually there this - // makes dealing with it more convenient. - $info['node']['properties']['body'] = array( - 'type' => 'text_formatted', - 'label' => t('The main body text'), - 'getter callback' => 'entity_metadata_field_verbatim_get', - 'setter callback' => 'entity_metadata_field_verbatim_set', - 'property info' => entity_property_text_formatted_info(), - 'auto creation' => 'entity_property_create_array', - 'field' => TRUE, - ); - - // Make it a list if cardinality is not 1. - $field_body = field_info_field('body'); - if (isset($field_body) && $field_body['cardinality'] != 1) { - $info['node']['properties']['body']['type'] = 'list'; - } -}