sheetnode_raw_plugin_style.inc in Sheetnode 7.2
Same filename and directory in other branches
Views raw plugin for sheetnode as a display style.
File
views/sheetnode_raw_plugin_style.incView source
<?php
/**
* @file
* Views raw plugin for sheetnode as a display style.
*/
/**
* Extension for raw sheetnode plugin style.
*/
class sheetnode_raw_plugin_style extends sheetnode_feed_plugin_style {
/**
* Initialise raw plugin style.
*/
function init(&$view, &$display, $options = NULL) {
parent::init($view, $display, $options = NULL);
$this->feed_image = drupal_get_path('module', 'sheetnode') . '/images/socialtext.png';
}
/**
* Render plugin style.
*/
function render() {
$this
->inherit_options();
drupal_add_http_header('Content-type', 'text/plain; charset=utf-8');
return socialcalc_save(parent::render_sheet());
}
}
Classes
Name | Description |
---|---|
sheetnode_raw_plugin_style | Extension for raw sheetnode plugin style. |