function adaptivetheme_process_comment

cis7 process.inc adaptivetheme_process_comment(&$vars)
cle7 process.inc adaptivetheme_process_comment(&$vars)
elmsmedia7 process.inc adaptivetheme_process_comment(&$vars)
icor7 process.inc adaptivetheme_process_comment(&$vars)
meedjum_blog7 process.inc adaptivetheme_process_comment(&$vars)
mooc7 process.inc adaptivetheme_process_comment(&$vars)

Process variables for comment.tpl.php

File

sites/all/themes/ulmus/adaptivetheme/at_core/inc/process.inc, line 221
All Process functions for templates and theme fucntions.

Code

function adaptivetheme_process_comment(&$vars) {
  global $theme_key;
  $theme_name = $theme_key;

  // Strip default drupal classes if not required.
  if (at_get_setting('extra_comment_classes', $theme_name) === 0) {
    $classes = explode(' ', $vars['classes']);
    $striped_classes = array('comment-by-anonymous', 'comment-by-node-autho', 'comment-by-viewer', 'comment-new');
    foreach ($striped_classes as $class) {
      if (in_array($class, $classes)) {
        $classes = str_replace($class, '', $classes);
      }
    }
    $vars['classes'] = trim(implode(' ', $classes));
  }

  // Flatten the additional wrapper attributes array
  $vars['header_attributes'] = empty($vars['header_attributes_array']) ? '' : drupal_attributes($vars['header_attributes_array']);
  $vars['footer_attributes'] = empty($vars['footer_attributes_array']) ? '' : drupal_attributes($vars['footer_attributes_array']);
  $vars['links_attributes'] = empty($vars['links_attributes_array']) ? '' : drupal_attributes($vars['links_attributes_array']);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.