You are here

function sheetnode_phpexcel_plugin_style::render in Sheetnode 5

Same name and namespace in other branches
  1. 6 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()

File

modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc, line 36

Class

sheetnode_phpexcel_plugin_style

Code

function render() {
  if (strpos($_REQUEST['q'], 'admin/build/views/ajax') === 0) {
    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_export_do($this->options['format'], $title, parent::render_sheet());
}