Mercurial > hg > rr-repo
view sites/all/themes/omega/preprocess/comment-wrapper.preprocess.inc @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
line wrap: on
line source
<?php /** * Implements hook_preprocess_comment_wrapper(). */ function omega_preprocess_comment_wrapper(&$variables) { // Add a HTML id so it can be used as an anchor target. $variables['attributes_array']['id'] = 'comments'; // Add the component class. $variables['attributes_array']['class'][] = 'comments'; // Add BEM style classes to subcomonents. $variables['title_attributes_array']['class'][] = 'comments__title'; $variables['form_title_attributes_array']['class'][] = 'comments__form-title'; }