Created
June 10, 2013 05:52
-
-
Save mynameispj/5746785 to your computer and use it in GitHub Desktop.
Drupal 7: add a custom View Mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_entity_info_alter(). | |
*/ | |
function MYMODULE_entity_info_alter(&$entity_info) { | |
$entity_info['node']['view modes']['another_teaser'] = array( | |
'label' => t('Another teaser'), | |
'custom settings' => TRUE, | |
); | |
} | |
// For more info, check out: http://www.wunderkraut.com/blog/drupal-7-custom-node-view-modes/2010-12-20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment