function sheetnode_feed_plugin_style::inherit_options in Sheetnode 7
Same name and namespace in other branches
- 6 views/sheetnode_plugin_style.inc \sheetnode_feed_plugin_style::inherit_options()
- 7.2 views/sheetnode_plugin_style.inc \sheetnode_feed_plugin_style::inherit_options()
2 calls to sheetnode_feed_plugin_style::inherit_options()
- sheetnode_phpexcel_plugin_style::render in modules/
sheetnode_phpexcel/ sheetnode_phpexcel_plugin_style.inc - Render the display in this style.
- sheetnode_raw_plugin_style::render in views/
sheetnode_raw_plugin_style.inc - Render the display in this style.
File
- views/
sheetnode_plugin_style.inc, line 556
Class
Code
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;
}
}
}
}