1 views_plugin_row_comment_rss.inc views_plugin_row_comment_rss::options_form_summary_options()

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

@todo: Maybe provide a views_plugin_row_rss_entity and reuse this method in views_plugin_row_comment|node_rss.inc

See also

views_plugin_row_node_rss::options_form_summary_options()

File

core/modules/comment/views/views_plugin_row_comment_rss.inc, line 65
Contains the comment RSS row style plugin.

Class

views_plugin_row_comment_rss
Plugin which formats the comments as RSS items.

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'];
    }
  }
  $options['title'] = t('Title only');
  $options['default'] = t('Use site default RSS settings');
  return $options;
}