popsu_documents.field_group.inc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * @file
  4. * popsu_documents.field_group.inc
  5. */
  6. /**
  7. * Implements hook_field_group_info().
  8. */
  9. function popsu_documents_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_popsu_doc_basic|node|popsu_document|form';
  15. $field_group->group_name = 'group_popsu_doc_basic';
  16. $field_group->entity_type = 'node';
  17. $field_group->bundle = 'popsu_document';
  18. $field_group->mode = 'form';
  19. $field_group->parent_name = '';
  20. $field_group->data = array(
  21. 'label' => 'Informations essentielles',
  22. 'weight' => '0',
  23. 'children' => array(
  24. 0 => 'field_popsu_doc_type',
  25. 1 => 'field_popsu_doc_files',
  26. 2 => 'title',
  27. ),
  28. 'format_type' => 'tab',
  29. 'format_settings' => array(
  30. 'formatter' => 'closed',
  31. 'instance_settings' => array(
  32. 'description' => '',
  33. 'classes' => '',
  34. 'required_fields' => 1,
  35. ),
  36. ),
  37. );
  38. $export['group_popsu_doc_basic|node|popsu_document|form'] = $field_group;
  39. $field_group = new stdClass();
  40. $field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
  41. $field_group->api_version = 1;
  42. $field_group->identifier = 'group_popsu_doc_meta|node|popsu_document|form';
  43. $field_group->group_name = 'group_popsu_doc_meta';
  44. $field_group->entity_type = 'node';
  45. $field_group->bundle = 'popsu_document';
  46. $field_group->mode = 'form';
  47. $field_group->parent_name = '';
  48. $field_group->data = array(
  49. 'label' => 'Fiche descriptive',
  50. 'weight' => '1',
  51. 'children' => array(
  52. 0 => 'field_popsu_doc_body',
  53. 1 => 'field_popsu_doc_source',
  54. ),
  55. 'format_type' => 'tab',
  56. 'format_settings' => array(
  57. 'formatter' => 'closed',
  58. 'instance_settings' => array(
  59. 'description' => '',
  60. 'classes' => '',
  61. 'required_fields' => 1,
  62. ),
  63. ),
  64. );
  65. $export['group_popsu_doc_meta|node|popsu_document|form'] = $field_group;
  66. $field_group = new stdClass();
  67. $field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
  68. $field_group->api_version = 1;
  69. $field_group->identifier = 'group_popsu_doc_noderef|node|popsu_document|form';
  70. $field_group->group_name = 'group_popsu_doc_noderef';
  71. $field_group->entity_type = 'node';
  72. $field_group->bundle = 'popsu_document';
  73. $field_group->mode = 'form';
  74. $field_group->parent_name = '';
  75. $field_group->data = array(
  76. 'label' => 'Contenu réferrent',
  77. 'weight' => '8',
  78. 'children' => array(),
  79. 'format_type' => 'fieldset',
  80. 'format_settings' => array(
  81. 'formatter' => 'collapsible',
  82. 'instance_settings' => array(
  83. 'description' => '',
  84. 'classes' => '',
  85. 'required_fields' => 1,
  86. ),
  87. ),
  88. );
  89. $export['group_popsu_doc_noderef|node|popsu_document|form'] = $field_group;
  90. return $export;
  91. }