Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mymodulename_preprocess_field(&$variables) {
- $element = $variables['element'];
- if ($content_type == 'cars' && $field_name == 'field_car_engine_size') {
- if ($element['#field_name'] == 'field_car_engine_size') {
- $variables['items'][0]['prefix'] = '<div class="row">';
- $variables['items'][0]['suffix'] = '</div>';
- }
- }
- }
Add Comment
Please, Sign In to add comment