To define a new custom display for an entity in Drupal 7, you'll need to create a custom module and implement hook_entity_info_alter().
Source code viewer
/** * Implements hook_entity_info_alter(). */ function HOOK_entity_info_alter(&$entity_info) { 'label' => t('Custom Display'), 'custom settings' => TRUE, ); }Programming Language: PHP