function gdoc_field_theme_suggestions_gdoc_field in Embedded Google Docs Viewer 8
Implements hook_theme_suggestions_HOOK().
File
- ./
gdoc_field.module, line 59 - A field formatter for the File field.
Code
function gdoc_field_theme_suggestions_gdoc_field(array $variables) {
$entity = $variables['entity'];
$bundle = $variables['bundle'];
$delta = $variables['delta'];
$field_name = $variables['field_name'];
$field_type = $variables['field_type'];
$suggestions[] = $variables['theme_hook_original'] . '__' . $entity;
$suggestions[] = $variables['theme_hook_original'] . '__' . $entity . '__' . $bundle;
$suggestions[] = $variables['theme_hook_original'] . '__' . $entity . '__' . $bundle . '__' . $delta;
$suggestions[] = $variables['theme_hook_original'] . '__' . $field_type;
$suggestions[] = $variables['theme_hook_original'] . '__' . $field_type . '__' . $field_name;
$suggestions[] = $variables['theme_hook_original'] . '__' . $field_type . '__' . $field_name . '__' . $delta;
return $suggestions;
}