function views_plugin_row_comment_view::options_form_summary_options
Return the main options, which are shown in the summary title.
1 call to views_plugin_row_comment_view::options_form_summary_options()
- views_plugin_row_comment_view::options_form in modules/
comment/ views_plugin_row_comment_view.inc - Provide a form for setting options.
File
-
modules/
comment/ views_plugin_row_comment_view.inc, line 74
Class
- views_plugin_row_comment_view
- Plugin which performs a comment_view on the resulting object.
Code
public function options_form_summary_options() {
$entity_info = entity_get_info('comment');
$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(
'full' => t('Full content'),
);
}
return $options;
}