public function views_plugin_display_services::options_summary in Services Views 7
Provide the summary for page options in the views UI.
This output is returned as an array.
Overrides views_plugin_display::options_summary
File
- includes/
views/ views_plugin_display_services.inc, line 112 - Contains the page display plugin.
Class
- views_plugin_display_services
- The plugin that handles a Services callback.
Code
public function options_summary(&$categories, &$options) {
// It is very important to call the parent function here:
parent::options_summary($categories, $options);
$categories['page'] = array(
'title' => t('Services settings'),
'column' => 'second',
'build' => array(
'#weight' => -10,
),
);
$path = strip_tags('/' . $this
->get_option('path'));
if (empty($path)) {
$path = t('None');
}
$options['path'] = array(
'category' => 'page',
'title' => t('Path'),
'value' => views_ui_truncate($path, 24),
);
}