Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $view = new view;
- $view->name = 'mail';
- $view->description = 'mail';
- $view->tag = 'zaznam';
- $view->view_php = '';
- $view->base_table = 'node';
- $view->is_cacheable = FALSE;
- $view->api_version = 2;
- $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
- $handler = $view->new_display('default', 'Defaults', 'default');
- $handler->override_option('fields', array(
- 'nid' => array(
- 'label' => 'Nid',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'link_to_node' => 0,
- 'exclude' => 0,
- 'id' => 'nid',
- 'table' => 'node',
- 'field' => 'nid',
- 'relationship' => 'none',
- ),
- 'created' => array(
- 'label' => 'Post date',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'html' => 0,
- 'strip_tags' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'date_format' => 'small',
- 'custom_date_format' => '',
- 'exclude' => 0,
- 'id' => 'created',
- 'table' => 'node',
- 'field' => 'created',
- 'relationship' => 'none',
- ),
- ));
- $handler->override_option('arguments', array(
- 'nid' => array(
- 'id' => 'nid',
- 'table' => 'node',
- 'field' => 'nid',
- ),
- ));
- $handler->override_option('access', array(
- 'type' => 'none',
- ));
- $handler->override_option('cache', array(
- 'type' => 'none',
- ));
- $handler = $view->new_display('pdf', 'PDF Page', 'pdf_1');
- $handler->override_option('arguments', array(
- 'nid' => array(
- 'default_action' => 'ignore',
- 'style_plugin' => 'default_summary',
- 'style_options' => array(),
- 'wildcard' => 'all',
- 'wildcard_substitution' => 'All',
- 'title' => '',
- 'breadcrumb' => '',
- 'default_argument_type' => 'fixed',
- 'default_argument' => '',
- 'validate_type' => 'none',
- 'validate_fail' => 'not found',
- 'break_phrase' => 1,
- 'not' => 0,
- 'id' => 'nid',
- 'table' => 'node',
- 'field' => 'nid',
- 'validate_user_argument_type' => 'uid',
- 'validate_user_roles' => array(
- '2' => 0,
- '3' => 0,
- '4' => 0,
- ),
- 'override' => array(
- 'button' => 'Use default',
- ),
- 'relationship' => 'none',
- 'default_options_div_prefix' => '',
- 'default_argument_fixed' => '',
- 'default_argument_user' => 0,
- 'default_argument_php' => '',
- 'validate_argument_node_type' => array(
- 'certificate' => 0,
- 'panel' => 0,
- 'zadost_naskladneni' => 0,
- 'zaznam' => 0,
- ),
- 'validate_argument_node_access' => 0,
- 'validate_argument_nid_type' => 'nid',
- 'validate_argument_vocabulary' => array(
- '1' => 0,
- '2' => 0,
- ),
- 'validate_argument_type' => 'tid',
- 'validate_argument_transform' => 0,
- 'validate_user_restrict_roles' => 0,
- 'validate_argument_php' => '',
- ),
- ));
- $handler->override_option('style_plugin', 'pdf_table');
- $handler->override_option('style_options', array(
- 'mission_description' => FALSE,
- 'description' => '',
- 'info' => array(
- 'nid' => array(
- 'header_style' => array(
- 'text' => array(
- 'font_size' => '',
- 'font_family' => 'default',
- 'font_style' => NULL,
- 'align' => NULL,
- 'hyphenate' => NULL,
- 'color' => '',
- ),
- 'render' => array(
- 'is_html' => 1,
- 'eval_before' => '',
- 'eval_after' => '',
- ),
- ),
- 'body_style' => array(
- 'text' => array(
- 'font_size' => '',
- 'font_family' => 'default',
- 'font_style' => NULL,
- 'align' => NULL,
- 'hyphenate' => NULL,
- 'color' => '',
- ),
- 'render' => array(
- 'is_html' => 1,
- 'eval_before' => '',
- 'eval_after' => '',
- ),
- ),
- 'position' => array(
- 'width' => '',
- ),
- ),
- 'created' => array(
- 'header_style' => array(
- 'text' => array(
- 'font_size' => '',
- 'font_family' => 'default',
- 'font_style' => NULL,
- 'align' => NULL,
- 'hyphenate' => NULL,
- 'color' => '',
- ),
- 'render' => array(
- 'is_html' => 1,
- 'eval_before' => '',
- 'eval_after' => '',
- ),
- ),
- 'body_style' => array(
- 'text' => array(
- 'font_size' => '',
- 'font_family' => 'default',
- 'font_style' => NULL,
- 'align' => NULL,
- 'hyphenate' => NULL,
- 'color' => '',
- ),
- 'render' => array(
- 'is_html' => 1,
- 'eval_before' => '',
- 'eval_after' => '',
- ),
- ),
- 'position' => array(
- 'width' => '',
- ),
- ),
- ),
- 'position' => array(
- 'last_writing_position' => 1,
- 'x' => '',
- 'y' => '120',
- 'width' => '',
- 'row_height' => '',
- ),
- 'grouping' => '',
- ));
- $handler->override_option('row_plugin', 'pdf_fields');
- $handler->override_option('path', 'testmail');
- $handler->override_option('menu', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler->override_option('tab_options', array(
- 'type' => 'none',
- 'title' => '',
- 'description' => '',
- 'weight' => 0,
- 'name' => 'navigation',
- ));
- $handler->override_option('displays', array());
- $handler->override_option('sitename_title', FALSE);
- $handler->override_option('default_page_format', 'A4');
- $handler->override_option('default_page_format_custom', '');
- $handler->override_option('default_page_orientation', 'P');
- $handler->override_option('unit', 'mm');
- $handler->override_option('margin_left', '15');
- $handler->override_option('margin_right', '15');
- $handler->override_option('margin_top', '15');
- $handler->override_option('margin_bottom', '15');
- $handler->override_option('leading_template', '');
- $handler->override_option('template', '');
- $handler->override_option('succeed_template', '');
- $handler->override_option('default_font_family', 'dejavusans');
- $handler->override_option('default_font_style', array(
- 'b' => 0,
- 'i' => 0,
- 'u' => 0,
- 'd' => 0,
- 'o' => 0,
- ));
- $handler->override_option('default_font_size', '12');
- $handler->override_option('default_text_align', 'L');
- $handler->override_option('default_font_color', '000000');
- $handler->override_option('default_text_hyphenate', 'none');
- $handler->override_option('css_file', '');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement