function views_plugin_row_file_rss::init in File Entity (fieldable files) 8.2
Same name and namespace in other branches
- 7.3 views/views_plugin_row_file_rss.inc \views_plugin_row_file_rss::init()
- 7.2 views/views_plugin_row_file_rss.inc \views_plugin_row_file_rss::init()
Override init function to convert fulltext view-mode to full.
Overrides PluginBase::init
File
- views/
views_plugin_row_file_rss.inc, line 33 - Contains the file RSS row style plugin.
Class
- views_plugin_row_file_rss
- Plugin which performs a file_view on the resulting object and formats it as an RSS item.
Code
function init(&$view, &$display, $options = NULL) {
parent::init($view, $display, $options);
if ($this->options['item_length'] == 'fulltext') {
$this->options['item_length'] = 'full';
}
}