mailing.features.filter.inc 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?php
  2. /**
  3. * @file
  4. * mailing.features.filter.inc
  5. */
  6. /**
  7. * Implements hook_filter_default_formats().
  8. */
  9. function mailing_filter_default_formats() {
  10. $formats = array();
  11. // Exported format: mailhtml.
  12. $formats['mailhtml'] = array(
  13. 'format' => 'mailhtml',
  14. 'name' => 'mailhtml',
  15. 'cache' => 1,
  16. 'status' => 1,
  17. 'weight' => -9,
  18. 'filters' => array(
  19. 'wysiwyg' => array(
  20. 'weight' => -46,
  21. 'status' => 1,
  22. 'settings' => array(
  23. 'valid_elements' => '@[class|style|title],
  24. a[href|target|title],
  25. img[src|width|height|alt|title],
  26. div[align<center?justify?left?right],
  27. p[align<center?justify?left?right],
  28. br,span,em,strong,cite,code,blockquote,ul,ol,li,dl,dt,dd,
  29. table[width|cellpadding|cellspacing|border], tr[align|valign], td[align|valign|width], tbody, th[align|valign|width], thead, tfoot, colgroup, col,',
  30. 'allow_comments' => 0,
  31. 'nofollow_policy' => 'whitelist',
  32. 'nofollow_domains' => array(
  33. 0 => 'www.materio.com',
  34. ),
  35. 'style_color' => array(
  36. 'color' => 'color',
  37. 'background-color' => 'background-color',
  38. 'background' => 0,
  39. 'background-image' => 0,
  40. 'background-repeat' => 0,
  41. 'background-attachment' => 0,
  42. 'background-position' => 0,
  43. ),
  44. 'style_font' => array(
  45. 'font' => 'font',
  46. 'font-family' => 'font-family',
  47. 'font-size' => 'font-size',
  48. 'font-size-adjust' => 0,
  49. 'font-stretch' => 0,
  50. 'font-style' => 0,
  51. 'font-variant' => 0,
  52. 'font-weight' => 0,
  53. ),
  54. 'style_text' => array(
  55. 'text-align' => 'text-align',
  56. 'text-decoration' => 'text-decoration',
  57. 'text-indent' => 0,
  58. 'text-transform' => 0,
  59. 'letter-spacing' => 0,
  60. 'word-spacing' => 0,
  61. 'white-space' => 0,
  62. 'direction' => 0,
  63. 'unicode-bidi' => 0,
  64. ),
  65. 'style_box' => array(
  66. 'margin' => 'margin',
  67. 'margin-top' => 'margin-top',
  68. 'margin-right' => 'margin-right',
  69. 'margin-bottom' => 'margin-bottom',
  70. 'margin-left' => 'margin-left',
  71. 'padding' => 'padding',
  72. 'padding-top' => 'padding-top',
  73. 'padding-right' => 'padding-right',
  74. 'padding-bottom' => 'padding-bottom',
  75. 'padding-left' => 'padding-left',
  76. ),
  77. 'style_border-1' => array(
  78. 'border' => 'border',
  79. 'border-top' => 'border-top',
  80. 'border-right' => 'border-right',
  81. 'border-bottom' => 'border-bottom',
  82. 'border-left' => 'border-left',
  83. 'border-width' => 'border-width',
  84. 'border-top-width' => 'border-top-width',
  85. 'border-right-width' => 'border-right-width',
  86. 'border-bottom-width' => 'border-bottom-width',
  87. 'border-left-width' => 'border-left-width',
  88. ),
  89. 'style_border-2' => array(
  90. 'border-color' => 'border-color',
  91. 'border-top-color' => 'border-top-color',
  92. 'border-right-color' => 'border-right-color',
  93. 'border-bottom-color' => 'border-bottom-color',
  94. 'border-left-color' => 'border-left-color',
  95. 'border-style' => 'border-style',
  96. 'border-top-style' => 'border-top-style',
  97. 'border-right-style' => 'border-right-style',
  98. 'border-bottom-style' => 'border-bottom-style',
  99. 'border-left-style' => 'border-left-style',
  100. ),
  101. 'style_dimension' => array(
  102. 'height' => 'height',
  103. 'width' => 'width',
  104. 'line-height' => 0,
  105. 'max-height' => 0,
  106. 'max-width' => 0,
  107. 'min-height' => 0,
  108. 'min-width' => 0,
  109. ),
  110. 'style_positioning' => array(
  111. 'bottom' => 0,
  112. 'clip' => 0,
  113. 'left' => 0,
  114. 'overflow' => 0,
  115. 'right' => 0,
  116. 'top' => 0,
  117. 'vertical-align' => 0,
  118. 'z-index' => 0,
  119. ),
  120. 'style_layout' => array(
  121. 'clear' => 0,
  122. 'display' => 0,
  123. 'float' => 0,
  124. 'position' => 0,
  125. 'visibility' => 0,
  126. ),
  127. 'style_list' => array(
  128. 'list-style' => 0,
  129. 'list-style-image' => 0,
  130. 'list-style-position' => 0,
  131. 'list-style-type' => 0,
  132. ),
  133. 'style_table' => array(
  134. 'border-collapse' => 'border-collapse',
  135. 'border-spacing' => 'border-spacing',
  136. 'caption-side' => 'caption-side',
  137. 'empty-cells' => 'empty-cells',
  138. 'table-layout' => 'table-layout',
  139. ),
  140. 'style_user' => array(
  141. 'cursor' => 0,
  142. 'outline' => 0,
  143. 'outline-width' => 0,
  144. 'outline-style' => 0,
  145. 'outline-color' => 0,
  146. 'zoom' => 0,
  147. ),
  148. 'rule_valid_classes' => array(),
  149. 'rule_valid_ids' => array(),
  150. 'rule_style_urls' => array(),
  151. ),
  152. ),
  153. 'filter_autop' => array(
  154. 'weight' => -45,
  155. 'status' => 1,
  156. 'settings' => array(),
  157. ),
  158. 'filter_htmlcorrector' => array(
  159. 'weight' => -44,
  160. 'status' => 1,
  161. 'settings' => array(),
  162. ),
  163. 'video_filter' => array(
  164. 'weight' => -41,
  165. 'status' => 1,
  166. 'settings' => array(
  167. 'video_filter_width' => 400,
  168. 'video_filter_height' => 400,
  169. 'video_filter_autoplay' => 1,
  170. 'video_filter_related' => 0,
  171. 'video_filter_html5' => 1,
  172. 'video_filter_codecs' => array(
  173. 'archive' => 'Archive.org',
  174. 'bliptv' => 'Blip.tv',
  175. 'candidcareer' => 'Candid Career',
  176. 'capped' => 'Capped',
  177. 'collegehumor' => 'College Humor',
  178. 'coub' => 'Coub',
  179. 'dailymotion' => 'DailyMotion',
  180. 'democracynow_fullshow' => 'DemocracyNow Fullshow',
  181. 'democracynow_story' => 'DemocracyNow Story',
  182. 'flickr_slideshows' => 'Flickr Slideshows',
  183. 'flickr_video' => 'Flickr Video',
  184. 'foxnews' => 'Fox News',
  185. 'gametrailers' => 'Game Trailers',
  186. 'gamevideos' => 'Game Videos',
  187. 'giphy' => 'Giphy',
  188. 'godtube' => 'GodTube',
  189. 'google' => 'Google Video',
  190. 'instagram' => 'Instagram',
  191. 'metacafe' => 'Meta Cafe',
  192. 'mailru' => 'Mail.Ru',
  193. 'myspace' => 'MySpace',
  194. 'myvideo' => 'MyVideo',
  195. 'picasa_slideshows' => 'Picasa Slideshows',
  196. 'rutube' => 'Rutube',
  197. 'slideshare' => 'Slideshare',
  198. 'streamhoster' => 'Streamhoster',
  199. 'teachertube' => 'Teachertube',
  200. 'ted' => 'TED',
  201. 'twitch' => 'Twitch',
  202. 'ustream' => 'Ustream',
  203. 'vbox' => 'Vbox7',
  204. 'vimeo' => 'Vimeo',
  205. 'vine' => 'Vine',
  206. 'whatchado' => 'whatchado',
  207. 'wistia' => 'Wistia',
  208. 'youku' => 'YouKu',
  209. 'youtube' => 'YouTube',
  210. 'youtube_playlist' => 'YouTube (Playlist)',
  211. ),
  212. 'video_filter_multiple_sources' => TRUE,
  213. ),
  214. ),
  215. 'pathologic' => array(
  216. 'weight' => -40,
  217. 'status' => 1,
  218. 'settings' => array(
  219. 'local_paths' => '',
  220. 'protocol_style' => 'full',
  221. ),
  222. ),
  223. ),
  224. );
  225. return $formats;
  226. }