You are here

function better_comments_preprocess_comment in Better Comments 7

Same name and namespace in other branches
  1. 7.2 better_comments.module \better_comments_preprocess_comment()

Implements hook_preprocess_comment().

File

./better_comments.module, line 556
Better Comments provides option to configure the comment system.

Code

function better_comments_preprocess_comment(&$variables, $hook) {
  $comment = $variables['elements']['#comment'];
  $account = user_load($comment->uid);
  $variables['theme_hook_suggestions'][] = 'better_comments';
  $variables['picture_set'] = variable_get('better_comments_picture', 0);
  $variables['user_picture'] = theme('user_picture', array(
    'account' => $account,
  ));
}