function views_plugin_display_block::execute_hook_block_list
The default block handler doesn't support configurable items, but extended block handlers might be able to do interesting stuff with it.
File
-
plugins/
views_plugin_display_block.inc, line 33
Class
- views_plugin_display_block
- The plugin that handles a block.
Code
public function execute_hook_block_list($delta = 0, $edit = array()) {
$delta = $this->view->name . '-' . $this->display->id;
$desc = $this->get_option('block_description');
if (empty($desc)) {
if ($this->display->display_title == $this->definition['title']) {
$desc = t('View: !view', array(
'!view' => $this->view
->get_human_name(),
));
}
else {
$desc = t('View: !view: !display', array(
'!view' => $this->view
->get_human_name(),
'!display' => $this->display->display_title,
));
}
}
return array(
$delta => array(
'info' => $desc,
'cache' => $this->get_cache_type(),
),
);
}