When rendering a message in a view using Rendered Entity, the message_message_view_alter function sets the build #theme key to 'message' which in turn set the 'theme_hook_suggestion' to 'message' and overrides any alternate bundle templates

This patch resolves that by checking for a #bundle key in the build and applying an alternate #theme value if it exists.

CommentFileSizeAuthor
message-views-alter-suggestion.patch499 bytesstiknoltz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amitaibu’s picture

Status: Active » Needs review

Correct status

Status: Needs review » Needs work

The last submitted patch, message-views-alter-suggestion.patch, failed testing.

amitaibu’s picture

Version: 7.x-1.9 » 7.x-1.x-dev
Status: Needs work » Needs review

... and correct version

bluegeek9’s picture

Status: Needs review » Closed (outdated)