mailing.features.field_instance.inc 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?php
  2. /**
  3. * @file
  4. * mailing.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function mailing_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'node-simplenews-body'.
  12. $field_instances['node-simplenews-body'] = array(
  13. 'bundle' => 'simplenews',
  14. 'default_value' => array(
  15. 0 => array(
  16. 'summary' => '',
  17. 'value' => 'default',
  18. 'format' => 'mailhtml',
  19. ),
  20. ),
  21. 'deleted' => 0,
  22. 'description' => '',
  23. 'display' => array(
  24. 'bookmark' => array(
  25. 'label' => 'above',
  26. 'settings' => array(),
  27. 'type' => 'hidden',
  28. 'weight' => 0,
  29. ),
  30. 'cardbig' => array(
  31. 'label' => 'above',
  32. 'settings' => array(),
  33. 'type' => 'hidden',
  34. 'weight' => 0,
  35. ),
  36. 'cardfull' => array(
  37. 'label' => 'above',
  38. 'settings' => array(),
  39. 'type' => 'hidden',
  40. 'weight' => 0,
  41. ),
  42. 'cardmedium' => array(
  43. 'label' => 'above',
  44. 'settings' => array(),
  45. 'type' => 'hidden',
  46. 'weight' => 0,
  47. ),
  48. 'cardsmall' => array(
  49. 'label' => 'above',
  50. 'settings' => array(),
  51. 'type' => 'hidden',
  52. 'weight' => 0,
  53. ),
  54. 'default' => array(
  55. 'label' => 'hidden',
  56. 'module' => 'text',
  57. 'settings' => array(),
  58. 'type' => 'text_default',
  59. 'weight' => 0,
  60. ),
  61. 'homeblock' => array(
  62. 'label' => 'above',
  63. 'settings' => array(),
  64. 'type' => 'hidden',
  65. 'weight' => 0,
  66. ),
  67. 'print' => array(
  68. 'label' => 'above',
  69. 'settings' => array(),
  70. 'type' => 'hidden',
  71. 'weight' => 0,
  72. ),
  73. 'teaser' => array(
  74. 'label' => 'hidden',
  75. 'module' => 'text',
  76. 'settings' => array(
  77. 'trim_length' => 600,
  78. ),
  79. 'type' => 'text_summary_or_trimmed',
  80. 'weight' => 0,
  81. ),
  82. ),
  83. 'entity_type' => 'node',
  84. 'field_name' => 'body',
  85. 'label' => 'Body',
  86. 'required' => 0,
  87. 'settings' => array(
  88. 'display_summary' => 1,
  89. 'entity_translation_sync' => FALSE,
  90. 'text_processing' => 1,
  91. 'user_register_form' => FALSE,
  92. ),
  93. 'widget' => array(
  94. 'active' => 1,
  95. 'module' => 'text',
  96. 'settings' => array(
  97. 'rows' => 20,
  98. 'summary_rows' => 5,
  99. ),
  100. 'type' => 'text_textarea_with_summary',
  101. 'weight' => 3,
  102. ),
  103. );
  104. // Exported field_instance: 'node-simplenews-field_simplenews_term'.
  105. $field_instances['node-simplenews-field_simplenews_term'] = array(
  106. 'bundle' => 'simplenews',
  107. 'default_value' => NULL,
  108. 'deleted' => 0,
  109. 'description' => '',
  110. 'display' => array(
  111. 'bookmark' => array(
  112. 'label' => 'above',
  113. 'settings' => array(),
  114. 'type' => 'hidden',
  115. 'weight' => 0,
  116. ),
  117. 'cardbig' => array(
  118. 'label' => 'above',
  119. 'settings' => array(),
  120. 'type' => 'hidden',
  121. 'weight' => 0,
  122. ),
  123. 'cardfull' => array(
  124. 'label' => 'above',
  125. 'settings' => array(),
  126. 'type' => 'hidden',
  127. 'weight' => 0,
  128. ),
  129. 'cardmedium' => array(
  130. 'label' => 'above',
  131. 'settings' => array(),
  132. 'type' => 'hidden',
  133. 'weight' => 0,
  134. ),
  135. 'cardsmall' => array(
  136. 'label' => 'above',
  137. 'settings' => array(),
  138. 'type' => 'hidden',
  139. 'weight' => 0,
  140. ),
  141. 'default' => array(
  142. 'label' => 'hidden',
  143. 'settings' => array(),
  144. 'type' => 'hidden',
  145. 'weight' => 3,
  146. ),
  147. 'email_html' => array(
  148. 'label' => 'hidden',
  149. 'settings' => array(),
  150. 'type' => 'hidden',
  151. 'weight' => 0,
  152. ),
  153. 'email_plain' => array(
  154. 'label' => 'hidden',
  155. 'settings' => array(),
  156. 'type' => 'hidden',
  157. 'weight' => 0,
  158. ),
  159. 'email_textalt' => array(
  160. 'label' => 'hidden',
  161. 'settings' => array(),
  162. 'type' => 'hidden',
  163. 'weight' => 0,
  164. ),
  165. 'homeblock' => array(
  166. 'label' => 'above',
  167. 'settings' => array(),
  168. 'type' => 'hidden',
  169. 'weight' => 0,
  170. ),
  171. 'print' => array(
  172. 'label' => 'above',
  173. 'settings' => array(),
  174. 'type' => 'hidden',
  175. 'weight' => 0,
  176. ),
  177. 'teaser' => array(
  178. 'label' => 'hidden',
  179. 'settings' => array(),
  180. 'type' => 'hidden',
  181. 'weight' => 1,
  182. ),
  183. ),
  184. 'entity_type' => 'node',
  185. 'field_name' => 'field_simplenews_term',
  186. 'label' => 'Newsletter category',
  187. 'required' => TRUE,
  188. 'settings' => array(
  189. 'entity_translation_sync' => FALSE,
  190. 'user_register_form' => FALSE,
  191. ),
  192. 'widget' => array(
  193. 'module' => 'options',
  194. 'settings' => array(),
  195. 'type' => 'options_buttons',
  196. 'weight' => 4,
  197. ),
  198. );
  199. // Exported field_instance: 'node-simplenews-field_visible_sur_la_home'.
  200. $field_instances['node-simplenews-field_visible_sur_la_home'] = array(
  201. 'bundle' => 'simplenews',
  202. 'default_value' => array(
  203. 0 => array(
  204. 'value' => 1,
  205. ),
  206. ),
  207. 'deleted' => 0,
  208. 'description' => '',
  209. 'display' => array(
  210. 'bookmark' => array(
  211. 'label' => 'above',
  212. 'settings' => array(),
  213. 'type' => 'hidden',
  214. 'weight' => 0,
  215. ),
  216. 'cardbig' => array(
  217. 'label' => 'above',
  218. 'settings' => array(),
  219. 'type' => 'hidden',
  220. 'weight' => 0,
  221. ),
  222. 'cardfull' => array(
  223. 'label' => 'above',
  224. 'settings' => array(),
  225. 'type' => 'hidden',
  226. 'weight' => 0,
  227. ),
  228. 'cardmedium' => array(
  229. 'label' => 'above',
  230. 'settings' => array(),
  231. 'type' => 'hidden',
  232. 'weight' => 0,
  233. ),
  234. 'cardsmall' => array(
  235. 'label' => 'above',
  236. 'settings' => array(),
  237. 'type' => 'hidden',
  238. 'weight' => 0,
  239. ),
  240. 'default' => array(
  241. 'label' => 'above',
  242. 'settings' => array(),
  243. 'type' => 'hidden',
  244. 'weight' => 4,
  245. ),
  246. 'homeblock' => array(
  247. 'label' => 'above',
  248. 'settings' => array(),
  249. 'type' => 'hidden',
  250. 'weight' => 0,
  251. ),
  252. 'print' => array(
  253. 'label' => 'above',
  254. 'settings' => array(),
  255. 'type' => 'hidden',
  256. 'weight' => 0,
  257. ),
  258. 'teaser' => array(
  259. 'label' => 'above',
  260. 'settings' => array(),
  261. 'type' => 'hidden',
  262. 'weight' => 0,
  263. ),
  264. ),
  265. 'entity_type' => 'node',
  266. 'field_name' => 'field_visible_sur_la_home',
  267. 'label' => 'Visible sur la home',
  268. 'required' => 0,
  269. 'settings' => array(
  270. 'entity_translation_sync' => FALSE,
  271. 'user_register_form' => FALSE,
  272. ),
  273. 'widget' => array(
  274. 'active' => 1,
  275. 'module' => 'options',
  276. 'settings' => array(
  277. 'display_label' => 1,
  278. ),
  279. 'type' => 'options_onoff',
  280. 'weight' => 5,
  281. ),
  282. );
  283. // Translatables
  284. // Included for use with string extractors like potx.
  285. t('Body');
  286. t('Newsletter category');
  287. t('Visible sur la home');
  288. return $field_instances;
  289. }