public function views_merge_rows_plugin_display_extender::options_summary in Views Merge Rows 7
Provide the default summary for options in the views UI.
Overrides views_plugin_display_extender::options_summary
File
- ./
views_merge_rows_plugin_display_extender.inc, line 152 - Contains the class to extend views display with rows merge functionality.
Class
- views_merge_rows_plugin_display_extender
- The plugin that merges rows with the same content in the specified fields.
Code
public function options_summary(&$categories, &$options) {
if ($this->display->display->handler
->uses_fields()) {
$configuration = $this
->get_options();
$options['views_merge_rows'] = array(
'category' => 'other',
'title' => t('Merge rows'),
'value' => $configuration['merge_rows'] ? t('Settings') : t('No'),
'desc' => t('Allow merging rows with the same content in the specified fields.'),
);
}
}