#784792 by Jacine: Add Field type template suggestions for more granular field API theming.

merge-requests/26/head
Angie Byron 2010-10-15 03:48:32 +00:00
parent 91bc8bed90
commit 5ab7658c0d
1 changed files with 1 additions and 0 deletions

View File

@ -854,6 +854,7 @@ function template_preprocess_field(&$variables, $hook) {
// Add specific suggestions that can override the default implementation.
$variables['theme_hook_suggestions'] = array(
'field__' . $element['#field_type'],
'field__' . $element['#field_name'],
'field__' . $element['#bundle'],
'field__' . $element['#field_name'] . '__' . $element['#bundle'],