field.pre.php 346 B

12345678
  1. <?php
  2. //dsm($vars);
  3. $vars['theme_hook_suggestions'][] = 'field__' . $vars['element']['#view_mode'];
  4. $vars['theme_hook_suggestions'][] = 'field__' . $vars['element']['#field_type'] . '__' . $vars['element']['#view_mode'];
  5. $vars['theme_hook_suggestions'][] = 'field__' . $vars['element']['#field_name'] . '__' . $vars['element']['#view_mode'];