You are here

function panopoly_theme_entity_info_alter in Panopoly Theme 7

Implements hook_entity_info_alter().

File

./panopoly_theme.module, line 36

Code

function panopoly_theme_entity_info_alter(&$entity_info) {

  // Add featured view mode to nodes
  $entity_info['node']['view modes']['featured'] = array(
    'label' => t('Featured'),
    'custom settings' => TRUE,
  );

  // Add featured view mode to users
  $entity_info['user']['view modes']['featured'] = array(
    'label' => t('Featured'),
    'custom settings' => TRUE,
  );

  // Add featured view mode to taxonomy
  $entity_info['taxonomy_term']['view modes']['featured'] = array(
    'label' => t('Featured'),
    'custom settings' => TRUE,
  );
}