Guest User

Untitled

a guest
Mar 24th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. function mymodulename_preprocess_field(&$variables) {
  2.  
  3. $element = $variables['element'];
  4.  
  5. if ($content_type == 'cars' && $field_name == 'field_car_engine_size') {
  6.  
  7. if ($element['#field_name'] == 'field_car_engine_size') {
  8. $variables['items'][0]['prefix'] = '<div class="row">';
  9. $variables['items'][0]['suffix'] = '</div>';
  10. }
  11. }
  12. }
Add Comment
Please, Sign In to add comment