function entity_metadata_create_comment in Entity API 7
Callback to create a new comment.
1 string reference to 'entity_metadata_create_comment'
- _entity_info_add_metadata in ./entity.module 
- Adds metadata and callbacks for core entities to the entity info.
File
- modules/callbacks.inc, line 900 
- Provides various callbacks for the whole core module integration.
Code
function entity_metadata_create_comment($values = array()) {
  $comment = (object) ($values + array(
    'status' => COMMENT_PUBLISHED,
    'pid' => 0,
    'subject' => '',
    'uid' => 0,
    'language' => LANGUAGE_NONE,
    'node_type' => NULL,
    'is_new' => TRUE,
  ));
  $comment->cid = FALSE;
  return $comment;
}