You are here

function support_preprocess_comment_wrapper in Support Ticketing System 7

Preprocess comment_wrapper.

File

./support.module, line 409
support.module

Code

function support_preprocess_comment_wrapper(&$vars) {
  if ($vars['node']->type == 'support_ticket' && variable_get('support_disable_post_comment', FALSE)) {

    // Add a css class to the wrapper, which will cause a rule in support-tickets.css to become active
    // and hide the <h2>.
    $vars['classes_array'][] = 'support-hide-post-comment';
  }
}