1 views_plugin_row_node_view.inc views_plugin_row_node_view::options_form_summary_options()

Return the main options, which are shown in the summary title.

File

core/modules/node/views/views_plugin_row_node_view.inc, line 77
Contains the node view row style plugin.

Class

views_plugin_row_node_view
Plugin which performs a node_view on the resulting object.

Code

function options_form_summary_options() {
  $entity_info = entity_get_info('node');
  $options = array();
  if (!empty($entity_info['view modes'])) {
    foreach ($entity_info['view modes'] as $mode => $settings) {
      $options[$mode] = $settings['label'];
    }
  }
  if (empty($options)) {
    $options = array(
      'teaser' => t('Teaser'),
      'full' => t('Full content')
    );
  }

  return $options;
}