chapitre.field_group.inc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /**
  3. * @file
  4. * chapitre.field_group.inc
  5. */
  6. /**
  7. * Implements hook_field_group_info().
  8. */
  9. function chapitre_field_group_info() {
  10. $export = array();
  11. $field_group = new stdClass();
  12. $field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
  13. $field_group->api_version = 1;
  14. $field_group->identifier = 'group_general|node|chapitre|form';
  15. $field_group->group_name = 'group_general';
  16. $field_group->entity_type = 'node';
  17. $field_group->bundle = 'chapitre';
  18. $field_group->mode = 'form';
  19. $field_group->parent_name = 'group_htabs';
  20. $field_group->data = array(
  21. 'label' => 'Général',
  22. 'weight' => '8',
  23. 'children' => array(
  24. 0 => 'field_dbatre',
  25. 1 => 'field_agir',
  26. 2 => 'field_comprendre',
  27. 3 => 'field_partager',
  28. 4 => 'field_accroche',
  29. ),
  30. 'format_type' => 'htab',
  31. 'format_settings' => array(
  32. 'formatter' => 'closed',
  33. 'instance_settings' => array(
  34. 'description' => '',
  35. 'classes' => 'group-general field-group-htab',
  36. 'required_fields' => 1,
  37. 'id' => '',
  38. ),
  39. ),
  40. );
  41. $export['group_general|node|chapitre|form'] = $field_group;
  42. $field_group = new stdClass();
  43. $field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
  44. $field_group->api_version = 1;
  45. $field_group->identifier = 'group_htabs|node|chapitre|form';
  46. $field_group->group_name = 'group_htabs';
  47. $field_group->entity_type = 'node';
  48. $field_group->bundle = 'chapitre';
  49. $field_group->mode = 'form';
  50. $field_group->parent_name = '';
  51. $field_group->data = array(
  52. 'label' => 'htabs',
  53. 'weight' => '1',
  54. 'children' => array(
  55. 0 => 'group_general',
  56. 1 => 'group_parties',
  57. ),
  58. 'format_type' => 'htabs',
  59. 'format_settings' => array(
  60. 'formatter' => '',
  61. 'instance_settings' => array(
  62. 'classes' => 'group-htabs field-group-htabs',
  63. ),
  64. ),
  65. );
  66. $export['group_htabs|node|chapitre|form'] = $field_group;
  67. $field_group = new stdClass();
  68. $field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
  69. $field_group->api_version = 1;
  70. $field_group->identifier = 'group_parties|node|chapitre|form';
  71. $field_group->group_name = 'group_parties';
  72. $field_group->entity_type = 'node';
  73. $field_group->bundle = 'chapitre';
  74. $field_group->mode = 'form';
  75. $field_group->parent_name = 'group_htabs';
  76. $field_group->data = array(
  77. 'label' => 'Parties',
  78. 'weight' => '9',
  79. 'children' => array(
  80. 0 => 'field_partie',
  81. ),
  82. 'format_type' => 'htab',
  83. 'format_settings' => array(
  84. 'formatter' => 'closed',
  85. 'instance_settings' => array(
  86. 'description' => '',
  87. 'classes' => 'group-parties field-group-htab',
  88. 'required_fields' => 1,
  89. 'id' => '',
  90. ),
  91. ),
  92. );
  93. $export['group_parties|node|chapitre|form'] = $field_group;
  94. $field_group = new stdClass();
  95. $field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
  96. $field_group->api_version = 1;
  97. $field_group->identifier = 'group_texts|field_collection_item|field_partie|form';
  98. $field_group->group_name = 'group_texts';
  99. $field_group->entity_type = 'field_collection_item';
  100. $field_group->bundle = 'field_partie';
  101. $field_group->mode = 'form';
  102. $field_group->parent_name = '';
  103. $field_group->data = array(
  104. 'label' => 'texts',
  105. 'weight' => '1',
  106. 'children' => array(
  107. 0 => 'field_description',
  108. 1 => 'field_titre',
  109. 2 => 'field_sous_titre',
  110. ),
  111. 'format_type' => 'html5',
  112. 'format_settings' => array(
  113. 'label' => 'texts',
  114. 'instance_settings' => array(
  115. 'id' => '',
  116. 'classes' => 'group-texts',
  117. 'wrapper' => 'section',
  118. ),
  119. 'formatter' => '',
  120. ),
  121. );
  122. $export['group_texts|field_collection_item|field_partie|form'] = $field_group;
  123. return $export;
  124. }