You are here

function featured_content_add_view_modes in Featured Content 7.2

Same name and namespace in other branches
  1. 7 featured_content.module \featured_content_add_view_modes()

Add the node view modes to given array.

1 call to featured_content_add_view_modes()
featured_content_block_configure in ./featured_content.module
Implements hook_block_configure().

File

./featured_content.module, line 1254
Featured Content module for created related & featured content blocks.

Code

function featured_content_add_view_modes(&$display_options) {
  $entity_info = entity_get_info('node');
  if (!empty($entity_info['view modes'])) {
    foreach ($entity_info['view modes'] as $view_mode => $view_mode_settings) {
      $display_options[$view_mode] = $view_mode_settings['label'];
    }
  }
}