You are here

function views_pdf_plugin_display::option_definition in Views PDF 6

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

The option definition.

File

./views_pdf_plugin_display.inc, line 141
PDF display plugin.

Class

views_pdf_plugin_display
This class contains all the functionality of the PDF display.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['displays'] = array(
    'default' => array(),
  );

  // Overrides for standard stuff:
  $options['style_plugin']['default'] = 'pdf_unformatted';
  $options['style_options']['default'] = array(
    'mission_description' => FALSE,
    'description' => '',
  );
  $options['sitename_title']['default'] = FALSE;
  $options['row_plugin']['default'] = 'pdf_fields';
  $options['defaults']['default']['style_plugin'] = FALSE;
  $options['defaults']['default']['style_options'] = FALSE;
  $options['defaults']['default']['row_plugin'] = FALSE;
  $options['defaults']['default']['row_options'] = FALSE;

  // New Options
  $options['default_page_format'] = array(
    'default' => 'A4',
  );
  $options['default_page_format_custom'] = array(
    'default' => '',
  );
  $options['default_page_orientation'] = array(
    'default' => 'P',
  );
  $options['unit'] = array(
    'default' => 'mm',
  );
  $options['margin_left'] = array(
    'default' => '15',
  );
  $options['margin_right'] = array(
    'default' => '15',
  );
  $options['margin_top'] = array(
    'default' => '15',
  );
  $options['margin_bottom'] = array(
    'default' => '15',
  );
  $options['leading_template'] = array(
    'default' => '',
  );
  $options['template'] = array(
    'default' => '',
  );
  $options['succeed_template'] = array(
    'default' => '',
  );
  $options['default_font_family'] = array(
    'default' => 'helvetica',
  );
  $options['default_font_style'] = array(
    'default' => array(),
  );
  $options['default_font_size'] = array(
    'default' => '11',
  );
  $options['default_text_align'] = array(
    'default' => 'L',
  );
  $options['default_font_color'] = array(
    'default' => '000000',
  );
  $options['default_text_hyphenate'] = array(
    'default' => 'none',
  );
  $options['css_file'] = array(
    'default' => '',
  );
  return $options;
}