function views_plugin_display_block::options_summary
Provide the summary for page options in the views UI.
This output is returned as an array.
Overrides views_plugin_display::options_summary
File
-
plugins/
views_plugin_display_block.inc, line 72
Class
- views_plugin_display_block
- The plugin that handles a block.
Code
public function options_summary(&$categories, &$options) {
// It is very important to call the parent function here.
parent::options_summary($categories, $options);
$categories['block'] = array(
'title' => t('Block settings'),
'column' => 'second',
'build' => array(
'#weight' => -10,
),
);
$block_description = strip_tags($this->get_option('block_description'));
if (empty($block_description)) {
$block_description = t('None');
}
$options['block_description'] = array(
'category' => 'block',
'title' => t('Block name'),
'value' => views_ui_truncate($block_description, 24),
);
$types = $this->block_caching_modes();
$options['block_caching'] = array(
'category' => 'other',
'title' => t('Block caching'),
'value' => $types[$this->get_cache_type()],
);
}