Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This module provides the ability to add extra View Modes for entity types such
as nodes, users, and comments.

It is a simplified version of Entity View Modes: https://www.drupal.org/project/entity_view_mode

It is a "Minimalist" module. It has no UI for module settings. See Configuration
section below.

1. Place the entire m_entity_view_modes directory into your Drupal sites/all/modules/

2. Enable the Minimalist module by navigating to:

administer > modules

This module reads it's setting from a Drupal variable with the key m_entity_view_modes.
The variable should be set like this:

 'node' => array( // Entity type machine name key
   'featured' => array( // View mode machine name key
     'label' => 'Featured',
     'custom settings' => FALSE,

* Suggested methods for settings variable:
1. Set directly in settings.php via $conf variable
2. Include the following in settings.php to include a configuration file

 * Conf file
if (file_exists(dirname(__FILE__) . '/site_conf.php')) {
  include dirname(__FILE__) . '/site_conf.php';

In site_conf.php set variable via $conf for this module and other "Minimalist" modules.

Project information