function photos_theme_suggestions_photos_image in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 photos.module \photos_theme_suggestions_photos_image()
Implements hook_theme_suggestions_HOOK().
File
- ./
photos.module, line 1389 - Implementation of photos.module.
Code
function photos_theme_suggestions_photos_image(array $variables) {
$suggestions = [];
$sanitized_view_mode = strtr($variables['elements']['#view_mode'], '.', '_');
$suggestions[] = 'photos_image__' . $sanitized_view_mode;
return $suggestions;
}