view sites/all/themes/omega/preprocess/field.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_block().
 */
function omega_preprocess_field(&$variables) {
  // Change field classes to use BEM syntax.
  $variables['classes_array'] = preg_replace('/^field-(?!-)/', 'field--', $variables['classes_array']);
  $variables['label_display_css'] = drupal_clean_css_identifier($variables['element']['#label_display']);
}