Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.10 KB | None | 0 0
  1. $view = new view;
  2. $view->name = 'mail';
  3. $view->description = 'mail';
  4. $view->tag = 'zaznam';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10. $handler = $view->new_display('default', 'Defaults', 'default');
  11. $handler->override_option('fields', array(
  12. 'nid' => array(
  13. 'label' => 'Nid',
  14. 'alter' => array(
  15. 'alter_text' => 0,
  16. 'text' => '',
  17. 'make_link' => 0,
  18. 'path' => '',
  19. 'link_class' => '',
  20. 'alt' => '',
  21. 'prefix' => '',
  22. 'suffix' => '',
  23. 'target' => '',
  24. 'help' => '',
  25. 'trim' => 0,
  26. 'max_length' => '',
  27. 'word_boundary' => 1,
  28. 'ellipsis' => 1,
  29. 'html' => 0,
  30. 'strip_tags' => 0,
  31. ),
  32. 'empty' => '',
  33. 'hide_empty' => 0,
  34. 'empty_zero' => 0,
  35. 'link_to_node' => 0,
  36. 'exclude' => 0,
  37. 'id' => 'nid',
  38. 'table' => 'node',
  39. 'field' => 'nid',
  40. 'relationship' => 'none',
  41. ),
  42. 'created' => array(
  43. 'label' => 'Post date',
  44. 'alter' => array(
  45. 'alter_text' => 0,
  46. 'text' => '',
  47. 'make_link' => 0,
  48. 'path' => '',
  49. 'link_class' => '',
  50. 'alt' => '',
  51. 'prefix' => '',
  52. 'suffix' => '',
  53. 'target' => '',
  54. 'help' => '',
  55. 'trim' => 0,
  56. 'max_length' => '',
  57. 'word_boundary' => 1,
  58. 'ellipsis' => 1,
  59. 'html' => 0,
  60. 'strip_tags' => 0,
  61. ),
  62. 'empty' => '',
  63. 'hide_empty' => 0,
  64. 'empty_zero' => 0,
  65. 'date_format' => 'small',
  66. 'custom_date_format' => '',
  67. 'exclude' => 0,
  68. 'id' => 'created',
  69. 'table' => 'node',
  70. 'field' => 'created',
  71. 'relationship' => 'none',
  72. ),
  73. ));
  74. $handler->override_option('arguments', array(
  75. 'nid' => array(
  76. 'id' => 'nid',
  77. 'table' => 'node',
  78. 'field' => 'nid',
  79. ),
  80. ));
  81. $handler->override_option('access', array(
  82. 'type' => 'none',
  83. ));
  84. $handler->override_option('cache', array(
  85. 'type' => 'none',
  86. ));
  87. $handler = $view->new_display('pdf', 'PDF Page', 'pdf_1');
  88. $handler->override_option('arguments', array(
  89. 'nid' => array(
  90. 'default_action' => 'ignore',
  91. 'style_plugin' => 'default_summary',
  92. 'style_options' => array(),
  93. 'wildcard' => 'all',
  94. 'wildcard_substitution' => 'All',
  95. 'title' => '',
  96. 'breadcrumb' => '',
  97. 'default_argument_type' => 'fixed',
  98. 'default_argument' => '',
  99. 'validate_type' => 'none',
  100. 'validate_fail' => 'not found',
  101. 'break_phrase' => 1,
  102. 'not' => 0,
  103. 'id' => 'nid',
  104. 'table' => 'node',
  105. 'field' => 'nid',
  106. 'validate_user_argument_type' => 'uid',
  107. 'validate_user_roles' => array(
  108. '2' => 0,
  109. '3' => 0,
  110. '4' => 0,
  111. ),
  112. 'override' => array(
  113. 'button' => 'Use default',
  114. ),
  115. 'relationship' => 'none',
  116. 'default_options_div_prefix' => '',
  117. 'default_argument_fixed' => '',
  118. 'default_argument_user' => 0,
  119. 'default_argument_php' => '',
  120. 'validate_argument_node_type' => array(
  121. 'certificate' => 0,
  122. 'panel' => 0,
  123. 'zadost_naskladneni' => 0,
  124. 'zaznam' => 0,
  125. ),
  126. 'validate_argument_node_access' => 0,
  127. 'validate_argument_nid_type' => 'nid',
  128. 'validate_argument_vocabulary' => array(
  129. '1' => 0,
  130. '2' => 0,
  131. ),
  132. 'validate_argument_type' => 'tid',
  133. 'validate_argument_transform' => 0,
  134. 'validate_user_restrict_roles' => 0,
  135. 'validate_argument_php' => '',
  136. ),
  137. ));
  138. $handler->override_option('style_plugin', 'pdf_table');
  139. $handler->override_option('style_options', array(
  140. 'mission_description' => FALSE,
  141. 'description' => '',
  142. 'info' => array(
  143. 'nid' => array(
  144. 'header_style' => array(
  145. 'text' => array(
  146. 'font_size' => '',
  147. 'font_family' => 'default',
  148. 'font_style' => NULL,
  149. 'align' => NULL,
  150. 'hyphenate' => NULL,
  151. 'color' => '',
  152. ),
  153. 'render' => array(
  154. 'is_html' => 1,
  155. 'eval_before' => '',
  156. 'eval_after' => '',
  157. ),
  158. ),
  159. 'body_style' => array(
  160. 'text' => array(
  161. 'font_size' => '',
  162. 'font_family' => 'default',
  163. 'font_style' => NULL,
  164. 'align' => NULL,
  165. 'hyphenate' => NULL,
  166. 'color' => '',
  167. ),
  168. 'render' => array(
  169. 'is_html' => 1,
  170. 'eval_before' => '',
  171. 'eval_after' => '',
  172. ),
  173. ),
  174. 'position' => array(
  175. 'width' => '',
  176. ),
  177. ),
  178. 'created' => array(
  179. 'header_style' => array(
  180. 'text' => array(
  181. 'font_size' => '',
  182. 'font_family' => 'default',
  183. 'font_style' => NULL,
  184. 'align' => NULL,
  185. 'hyphenate' => NULL,
  186. 'color' => '',
  187. ),
  188. 'render' => array(
  189. 'is_html' => 1,
  190. 'eval_before' => '',
  191. 'eval_after' => '',
  192. ),
  193. ),
  194. 'body_style' => array(
  195. 'text' => array(
  196. 'font_size' => '',
  197. 'font_family' => 'default',
  198. 'font_style' => NULL,
  199. 'align' => NULL,
  200. 'hyphenate' => NULL,
  201. 'color' => '',
  202. ),
  203. 'render' => array(
  204. 'is_html' => 1,
  205. 'eval_before' => '',
  206. 'eval_after' => '',
  207. ),
  208. ),
  209. 'position' => array(
  210. 'width' => '',
  211. ),
  212. ),
  213. ),
  214. 'position' => array(
  215. 'last_writing_position' => 1,
  216. 'x' => '',
  217. 'y' => '120',
  218. 'width' => '',
  219. 'row_height' => '',
  220. ),
  221. 'grouping' => '',
  222. ));
  223. $handler->override_option('row_plugin', 'pdf_fields');
  224. $handler->override_option('path', 'testmail');
  225. $handler->override_option('menu', array(
  226. 'type' => 'none',
  227. 'title' => '',
  228. 'description' => '',
  229. 'weight' => 0,
  230. 'name' => 'navigation',
  231. ));
  232. $handler->override_option('tab_options', array(
  233. 'type' => 'none',
  234. 'title' => '',
  235. 'description' => '',
  236. 'weight' => 0,
  237. 'name' => 'navigation',
  238. ));
  239. $handler->override_option('displays', array());
  240. $handler->override_option('sitename_title', FALSE);
  241. $handler->override_option('default_page_format', 'A4');
  242. $handler->override_option('default_page_format_custom', '');
  243. $handler->override_option('default_page_orientation', 'P');
  244. $handler->override_option('unit', 'mm');
  245. $handler->override_option('margin_left', '15');
  246. $handler->override_option('margin_right', '15');
  247. $handler->override_option('margin_top', '15');
  248. $handler->override_option('margin_bottom', '15');
  249. $handler->override_option('leading_template', '');
  250. $handler->override_option('template', '');
  251. $handler->override_option('succeed_template', '');
  252. $handler->override_option('default_font_family', 'dejavusans');
  253. $handler->override_option('default_font_style', array(
  254. 'b' => 0,
  255. 'i' => 0,
  256. 'u' => 0,
  257. 'd' => 0,
  258. 'o' => 0,
  259. ));
  260. $handler->override_option('default_font_size', '12');
  261. $handler->override_option('default_text_align', 'L');
  262. $handler->override_option('default_font_color', '000000');
  263. $handler->override_option('default_text_hyphenate', 'none');
  264. $handler->override_option('css_file', '');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement