function views_pdf_plugin_display::option_definition in Views PDF 7.3
Same name and namespace in other branches
- 6 views_pdf_plugin_display.inc \views_pdf_plugin_display::option_definition()
- 7 views_pdf_plugin_display.inc \views_pdf_plugin_display::option_definition()
- 7.2 plugins/views_pdf_plugin_display.inc \views_pdf_plugin_display::option_definition()
The option definition.
Overrides views_plugin_display_page::option_definition
File
- ./
views_pdf_plugin_display.inc, line 171 - 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['header_margin'] = array(
'default' => '1',
);
$options['header_font_family'] = array(
'default' => 'helvetica',
);
$options['header_font_style'] = array(
'default' => array(),
);
$options['header_font_size'] = array(
'default' => '12',
);
$options['header_text_align'] = array(
'default' => 'C',
);
$options['header_font_color'] = array(
'default' => '000000',
);
$options['footer_spacing'] = array(
'default' => '1',
);
$options['footer_font_family'] = array(
'default' => 'helvetica',
);
$options['footer_font_style'] = array(
'default' => array(),
);
$options['footer_font_size'] = array(
'default' => '12',
);
$options['footer_text_align'] = array(
'default' => 'C',
);
$options['footer_font_color'] = array(
'default' => '000000',
);
$options['css_file'] = array(
'default' => '',
);
return $options;
}