You are here

function sheetnode_phpexcel_plugin_style::attach_to in Sheetnode 7.2

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

Attach sheetnode fields to plugin style.

Overrides sheetnode_plugin_style::attach_to

File

modules/sheetnode_phpexcel/sheetnode_phpexcel_plugin_style.inc, line 31
Views plugin style to run through sheetnode_phpexcel.

Class

sheetnode_phpexcel_plugin_style
@file Views plugin style to run through sheetnode_phpexcel.

Code

function attach_to($display_id, $path, $title) {
  $plugins = sheetnode_phpexcel_get_plugins();
  $this->feed_image = drupal_get_path('module', 'sheetnode_phpexcel') . "/images/{$this->options['format']}.png";
  if (!is_file($this->feed_image)) {
    $this->feed_image = drupal_get_path('module', 'sheetnode_phpexcel') . "/images/spreadsheet.png";
  }
  parent::attach_to($display_id, $path, $title);
}