function sheetnode_phpexcel_plugin_style::render in Sheetnode 7.2
Same name and namespace in other branches
- 5 modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc \sheetnode_phpexcel_plugin_style::render()
- 6 modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc \sheetnode_phpexcel_plugin_style::render()
- 7 modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc \sheetnode_phpexcel_plugin_style::render()
Render sheetnode plugin style.
Overrides sheetnode_plugin_style::render
File
- modules/
sheetnode_phpexcel/ sheetnode_phpexcel_plugin_style.inc, line 40 - Views plugin style to run through sheetnode_phpexcel.
Class
- sheetnode_phpexcel_plugin_style
- @file Views plugin style to run through sheetnode_phpexcel.
Code
function render() {
if (!empty($this->view->live_preview)) {
drupal_set_message(t('Spreadsheet file preview is not supported.'), 'warning');
return;
}
module_load_include('inc', 'sheetnode_phpexcel', 'sheetnode_phpexcel.export');
$title = $this->display->handler
->get_option('title');
if (empty($title)) {
$title = $this->view->name;
}
$this
->inherit_options();
sheetnode_phpexcel_batch_export(array(
$title => parent::render_sheet(),
), $title, $this->options['format']);
}