You are here

function sheetnode_phpexcel_plugin_style::render in Sheetnode 6

Same name and namespace in other branches
  1. 5 modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc \sheetnode_phpexcel_plugin_style::render()
  2. 7.2 modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc \sheetnode_phpexcel_plugin_style::render()
  3. 7 modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc \sheetnode_phpexcel_plugin_style::render()

Overrides sheetnode_plugin_style::render

File

modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc, line 36

Class

sheetnode_phpexcel_plugin_style

Code

function render() {
  if (!empty($this->view->live_preview)) {
    drupal_set_message(t('Spreadsheet file preview is not supported.'), 'warning');
    return;
  }
  require_once drupal_get_path('module', 'sheetnode_phpexcel') . '/sheetnode_phpexcel.export.inc';
  $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']);
}