function comment_view_multiple

Constructs render array from an array of loaded comments.

Parameters

$comments: An array of comments as returned by comment_load_multiple().

$view_mode: View mode, e.g. 'full', 'teaser'...

$langcode: A string indicating the language field values are to be shown in. If no language is provided the current content language is used.

Return value

An array in the format expected by drupal_render().

See also

drupal_render()

2 calls to comment_view_multiple()
comment_node_page_additions in drupal/core/modules/comment/comment.module
Builds the comment-related elements for node detail pages.
comment_node_update_index in drupal/core/modules/comment/comment.module
Implements hook_node_update_index().

File

drupal/core/modules/comment/comment.module, line 1041
Enables users to comment on published content.

Code

function comment_view_multiple($comments, $view_mode = 'full', $langcode = NULL) {
  return entity_view_multiple($comments, $view_mode, $langcode);
}