materio_publications.features.field_instance.inc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. /**
  3. * @file
  4. * materio_publications.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function materio_publications_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'node-publication-body'
  12. $field_instances['node-publication-body'] = array(
  13. 'bundle' => 'publication',
  14. 'default_value' => NULL,
  15. 'deleted' => 0,
  16. 'description' => '',
  17. 'display' => array(
  18. 'bookmark' => array(
  19. 'label' => 'above',
  20. 'settings' => array(),
  21. 'type' => 'hidden',
  22. 'weight' => 0,
  23. ),
  24. 'cardbig' => array(
  25. 'label' => 'above',
  26. 'settings' => array(),
  27. 'type' => 'hidden',
  28. 'weight' => 0,
  29. ),
  30. 'cardfull' => array(
  31. 'label' => 'above',
  32. 'settings' => array(),
  33. 'type' => 'hidden',
  34. 'weight' => 0,
  35. ),
  36. 'cardmedium' => array(
  37. 'label' => 'above',
  38. 'settings' => array(),
  39. 'type' => 'hidden',
  40. 'weight' => 0,
  41. ),
  42. 'cardsmall' => array(
  43. 'label' => 'above',
  44. 'settings' => array(),
  45. 'type' => 'hidden',
  46. 'weight' => 0,
  47. ),
  48. 'default' => array(
  49. 'label' => 'hidden',
  50. 'module' => 'text',
  51. 'settings' => array(),
  52. 'type' => 'text_default',
  53. 'weight' => 0,
  54. ),
  55. 'teaser' => array(
  56. 'label' => 'hidden',
  57. 'module' => 'text',
  58. 'settings' => array(
  59. 'trim_length' => 600,
  60. ),
  61. 'type' => 'text_summary_or_trimmed',
  62. 'weight' => 0,
  63. ),
  64. ),
  65. 'entity_type' => 'node',
  66. 'field_name' => 'body',
  67. 'label' => 'Body',
  68. 'required' => FALSE,
  69. 'settings' => array(
  70. 'display_summary' => TRUE,
  71. 'entity_translation_sync' => FALSE,
  72. 'text_processing' => 1,
  73. 'user_register_form' => FALSE,
  74. ),
  75. 'widget' => array(
  76. 'module' => 'text',
  77. 'settings' => array(
  78. 'rows' => 20,
  79. 'summary_rows' => 5,
  80. ),
  81. 'type' => 'text_textarea_with_summary',
  82. 'weight' => 31,
  83. ),
  84. );
  85. // Translatables
  86. // Included for use with string extractors like potx.
  87. t('Body');
  88. return $field_instances;
  89. }