function related_blog_entity_info_alter in Util 7
Implements hook_entity_info_alter(). Add a view mode so teaser can be changed, if desired.
File
- contribs/
related_blog/ related_blog.module, line 112 - Provides block to show blog of node's author.
Code
function related_blog_entity_info_alter(&$entity_info) {
// drupal_set_message(print_r($entity_info['node']['view modes'],true));
$entity_info['node']['view modes']['related_blog'] = array(
'label' => t('Related blog block'),
'custom settings' => TRUE,
);
}