1 views_plugin_row_comment_view.inc | views_plugin_row_comment_view::options_form_summary_options() |
Return the main options, which are shown in the summary title.
File
- core/
modules/ comment/ views/ views_plugin_row_comment_view.inc, line 57 - Contains the node RSS row style plugin.
Class
- views_plugin_row_comment_view
- Plugin which performs a comment_view on the resulting object.
Code
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;
}