I have problem with template for field "field_is_new" in Drupal 7. My_Theme is a modification of the Garland theme. (I don't know if it's important.)
I have created a template for this field in my theme folder ("My_Theme/templates/field--field-is-new.tpl.php").
In template.php, I added:
function My_Theme_preprocess_field(&$variables, $hook) {
// Add specific suggestions that can override the default implementation.
array_unshift($variables['theme_hook_suggestions'], 'field__' . $variables['element']['#field_name']);
}
I cleared the cache, and rebuilt the theme.
I was thinking it's good way to do this, but it's not working. What's wrong?