You are here

function template_preprocess_activity_comments_comment in Activity 6.2

Same name and namespace in other branches
  1. 7 activity_comments/activity_comments.module \template_preprocess_activity_comments_comment()

Preprocess the comment display to add in the sanitized variables

File

activity_comments/activity_comments.module, line 288
Provides comment handling for activity messages

Code

function template_preprocess_activity_comments_comment(&$vars, $hook) {
  $vars['username'] = theme('username', $vars['comment']);
  $vars['comment_value'] = check_markup($vars['comment']->comment);
  $vars['date'] = format_date($vars['comment']->timestamp);
  if (activity_comments_delete_access($vars['comment']->cid)) {
    $vars['delete_link'] = l(t('Delete'), 'activity/comments/delete/' . $vars['comment']->cid, array(
      'query' => drupal_get_destination(),
    ));
  }
}