function views_pdf_plugin_display::defaultable_sections in Views PDF 7
Same name and namespace in other branches
- 6 views_pdf_plugin_display.inc \views_pdf_plugin_display::defaultable_sections()
- 7.3 views_pdf_plugin_display.inc \views_pdf_plugin_display::defaultable_sections()
- 7.2 plugins/views_pdf_plugin_display.inc \views_pdf_plugin_display::defaultable_sections()
This method defines the default sections and the appropriated values.
Overrides views_plugin_display::defaultable_sections
File
- ./
views_pdf_plugin_display.inc, line 144 - PDF display plugin.
Class
- views_pdf_plugin_display
- This class contains all the functionality of the PDF display.
Code
function defaultable_sections($section = NULL) {
if (in_array($section, array(
'style_options',
'style_plugin',
'row_options',
'row_plugin',
))) {
return FALSE;
}
$sections = parent::defaultable_sections($section);
// Tell views our sitename_title option belongs in the title section.
if ($section == 'title') {
$sections[] = 'sitename_title';
}
elseif (!$section) {
$sections['title'][] = 'sitename_title';
}
return $sections;
}