You are here

function helper_preprocess_comment in Helper 7

Implements hook_preprocess_comment().

File

./helper.module, line 256

Code

function helper_preprocess_comment(&$variables) {
  $node = $variables['elements']['#node'];
  if (!variable_get('comment_subject_field_' . $node->type, 1) && helper_is_tweak_enabled('comment_hide_disabled_subject')) {
    $variables['title_attributes_array']['class'][] = 'element-invisible';
  }
}