You are here

function theme_activity_comments in Activity 6

Theme function to process activity comments on activity records.

1 theme call to theme_activity_comments()
theme_activity in ./activity.module
Theme function for individual activity message.

File

./activity.module, line 1404
activity.module

Code

function theme_activity_comments($activity_comments) {
  $comments = array();
  foreach ($activity_comments as $activity_comment) {
    $comments[] = '<div class="activity-comment">' . '<div class="activity-comment-from">' . '<span class="activity-comment-author">' . theme('activity_username', $activity_comment, TRUE) . '</span> ' . '<span class="activity-comment-timestamp">' . t('at') . ' ' . theme('activity_timestamp', $activity_comment->timestamp) . '</span> ' . activity_comment_delete_link($activity_comment) . '</div>' . '<div class="activity-comment-comment">' . check_plain($activity_comment->comment) . '</div>' . '</div>';
  }
  return $comments;
}