Mercurial > hg > rr-repo
view sites/all/themes/omega/preprocess/links.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_links(). * * Intercepts the links to change inline class to links--inline. */ function omega_preprocess_links(&$variables) { // Change modifier classes to use BEM syntax. if(isset($variables['attributes']['class'])) { $variables['attributes']['class'] = preg_replace('/^inline$/', 'links--inline', $variables['attributes']['class']); } }