You are here

function views_plugin_row_file_rss::options_form_summary_options in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 8.2 views/views_plugin_row_file_rss.inc \views_plugin_row_file_rss::options_form_summary_options()
  2. 7.3 views/views_plugin_row_file_rss.inc \views_plugin_row_file_rss::options_form_summary_options()

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

2 calls to views_plugin_row_file_rss::options_form_summary_options()
views_plugin_row_file_rss::options_form in views/views_plugin_row_file_rss.inc
Provide a form for setting options.
views_plugin_row_file_rss::summary_title in views/views_plugin_row_file_rss.inc
Returns the summary of the settings in the display.

File

views/views_plugin_row_file_rss.inc, line 59
Contains the file RSS row style plugin.

Class

views_plugin_row_file_rss
Plugin which performs a file_view on the resulting object and formats it as an RSS item.

Code

function options_form_summary_options() {
  $entity_info = entity_get_info('file');
  $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;
}