Lets you create entity view mode templates as ENTITY-TYPE--BUNDLE--VIEW-MODE.tpl.php. Templates can be used in custom themes and modules.


Create ENTITY-TYPE--BUNDLE--VIEW-MODE.tpl.php template and it will be picked up automatically.


1. Implement hook_view_mode_templates() as follows. This hook should return a list of templates you want to use in the module.

 * Implements hook_view_mode_templates().
function MODULE_view_mode_templates() {
  return array(

2. Create the templates inside a templates directory inside your custom module. That's it.

Supporting organizations: 

Project Information