class sheetnode_feed_plugin_style in Sheetnode 6
Same name and namespace in other branches
- 7.2 views/sheetnode_plugin_style.inc \sheetnode_feed_plugin_style
- 7 views/sheetnode_plugin_style.inc \sheetnode_feed_plugin_style
Hierarchy
- class \sheetnode_plugin_style extends \views_plugin_style
- class \sheetnode_feed_plugin_style
Expanded class hierarchy of sheetnode_feed_plugin_style
File
- views/
sheetnode_plugin_style.inc, line 486
View source
class sheetnode_feed_plugin_style extends sheetnode_plugin_style {
function option_definition() {
$options = parent::option_definition();
$options['inherit'] = array(
'default' => TRUE,
);
return $options;
}
function options_form(&$form, &$form_values) {
parent::options_form($form, $form_values);
$form['inherit'] = array(
'#type' => 'checkbox',
'#title' => t('Inherit spreadsheet settings'),
'#default_value' => $this->options['inherit'],
'#description' => t('If this feed is attached to a display that has a Spreadsheet style,
this option lets you inherit the settings of that style, including the spreadsheet formatting.
The settings below are then ignored.'),
);
}
function inherit_options() {
if ($this->options['inherit']) {
$displays = array_filter($this->display->handler
->get_option('displays'));
if (!empty($displays)) {
foreach ($displays as $display) {
$handler = $this->view->display[$display]->handler;
if ($handler
->get_option('style_plugin') == 'sheet') {
$options = $handler
->get_option('style_options');
break;
}
}
}
if (isset($options)) {
foreach ($options as $key => $option) {
$this->options[$key] = $option;
}
}
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
sheetnode_feed_plugin_style:: |
function | |||
sheetnode_feed_plugin_style:: |
function |
Overrides sheetnode_plugin_style:: |
1 | |
sheetnode_feed_plugin_style:: |
function |
Overrides sheetnode_plugin_style:: |
1 | |
sheetnode_plugin_style:: |
function | 1 | ||
sheetnode_plugin_style:: |
function | |||
sheetnode_plugin_style:: |
function | 2 | ||
sheetnode_plugin_style:: |
function | |||
sheetnode_plugin_style:: |
function |