You are here

function views_pdf_plugin_display::defaultable_sections in Views PDF 6

Same name and namespace in other branches
  1. 7.3 views_pdf_plugin_display.inc \views_pdf_plugin_display::defaultable_sections()
  2. 7 views_pdf_plugin_display.inc \views_pdf_plugin_display::defaultable_sections()
  3. 7.2 plugins/views_pdf_plugin_display.inc \views_pdf_plugin_display::defaultable_sections()

This method defines the default sections and the appropriated values.

File

./views_pdf_plugin_display.inc, line 121
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;
}