function template_preprocess_activity_comments_comment in Activity 7
Same name and namespace in other branches
- 6.2 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 302 - Provides comment handling for activity messages
Code
function template_preprocess_activity_comments_comment(&$vars, $hook) {
$vars['username'] = theme('username', array(
'account' => $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(),
));
}
}