1 comment.entity.inc public CommentStorageController::load($ids = array(), $conditions = array())

Overrides DefaultEntityController::load().

Overrides DefaultEntityController::load

File

core/modules/comment/comment.entity.inc, line 223
Entity controller and class for comments.

Class

CommentStorageController
Defines the controller class for comments.

Code

public function load($ids = array(), $conditions = array()) {
  $comments = parent::load($ids, $conditions);

  foreach ($comments as $key => $comment) {
    $comment->new = node_mark($comment->nid, $comment->changed);
  }
  return $comments;
}