publication.field_group.inc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php
  2. /**
  3. * @file
  4. * publication.field_group.inc
  5. */
  6. /**
  7. * Implements hook_field_group_info().
  8. */
  9. function publication_field_group_info() {
  10. $field_groups = 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_citation|TripalEntity|bio_data_45|default';
  15. $field_group->group_name = 'group_citation';
  16. $field_group->entity_type = 'TripalEntity';
  17. $field_group->bundle = 'bio_data_45';
  18. $field_group->mode = 'default';
  19. $field_group->parent_name = '';
  20. $field_group->data = array(
  21. 'label' => 'Citation',
  22. 'weight' => '1',
  23. 'children' => array(
  24. 0 => 'tpub__citation',
  25. ),
  26. 'format_type' => 'fieldset',
  27. 'format_settings' => array(
  28. 'label' => 'Citation',
  29. 'instance_settings' => array(
  30. 'id' => '',
  31. 'classes' => 'group-citation field-group-fieldset',
  32. 'description' => '',
  33. ),
  34. 'formatter' => 'open',
  35. ),
  36. );
  37. $field_groups[''] = $field_group;
  38. $field_group = new stdClass();
  39. $field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
  40. $field_group->api_version = 1;
  41. $field_group->identifier = 'group_properties|TripalEntity|bio_data_45|default';
  42. $field_group->group_name = 'group_properties';
  43. $field_group->entity_type = 'TripalEntity';
  44. $field_group->bundle = 'bio_data_45';
  45. $field_group->mode = 'default';
  46. $field_group->parent_name = '';
  47. $field_group->data = array(
  48. 'label' => 'Properties',
  49. 'weight' => '2',
  50. 'children' => array(
  51. 0 => 'group_property_table',
  52. ),
  53. 'format_type' => 'fieldset',
  54. 'format_settings' => array(
  55. 'label' => 'Properties',
  56. 'instance_settings' => array(
  57. 'id' => '',
  58. 'classes' => 'group-properties field-group-fieldset',
  59. 'description' => '',
  60. ),
  61. 'formatter' => 'open',
  62. ),
  63. );
  64. $field_groups[''] = $field_group;
  65. $field_group = new stdClass();
  66. $field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
  67. $field_group->api_version = 1;
  68. $field_group->identifier = 'group_property_table|TripalEntity|bio_data_45|default';
  69. $field_group->group_name = 'group_property_table';
  70. $field_group->entity_type = 'TripalEntity';
  71. $field_group->bundle = 'bio_data_45';
  72. $field_group->mode = 'default';
  73. $field_group->parent_name = 'group_properties';
  74. $field_group->data = array(
  75. 'label' => '',
  76. 'weight' => '30',
  77. 'children' => array(
  78. 0 => 'sbo__database_cross_reference',
  79. 1 => 'tpub__doi',
  80. 2 => 'tpub__publication_type',
  81. ),
  82. 'format_type' => 'table',
  83. 'format_settings' => array(
  84. 'label' => '',
  85. 'instance_settings' => array(
  86. 'label_visibility' => '3',
  87. 'desc' => '',
  88. 'first_column' => '',
  89. 'second_column' => '',
  90. 'empty_label_behavior' => '1',
  91. 'table_row_striping' => 0,
  92. 'always_show_field_label' => 0,
  93. 'classes' => 'group-property-table field-group-table',
  94. ),
  95. ),
  96. );
  97. $field_groups[''] = $field_group;
  98. $field_group = new stdClass();
  99. $field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
  100. $field_group->api_version = 1;
  101. $field_group->identifier = 'group_references|TripalEntity|bio_data_45|default';
  102. $field_group->group_name = 'group_references';
  103. $field_group->entity_type = 'TripalEntity';
  104. $field_group->bundle = 'bio_data_45';
  105. $field_group->mode = 'default';
  106. $field_group->parent_name = '';
  107. $field_group->data = array(
  108. 'label' => 'References',
  109. 'weight' => '3',
  110. 'children' => array(
  111. 0 => 'sio__references',
  112. ),
  113. 'format_type' => 'fieldset',
  114. 'format_settings' => array(
  115. 'label' => 'References',
  116. 'instance_settings' => array(
  117. 'id' => '',
  118. 'classes' => 'group-references field-group-fieldset',
  119. 'description' => 'The following data housed by this site is referred to by this publication.',
  120. ),
  121. 'formatter' => 'open',
  122. ),
  123. );
  124. $field_groups[''] = $field_group;
  125. // Translatables
  126. // Included for use with string extractors like potx.
  127. t('Citation');
  128. t('Properties');
  129. t('References');
  130. return $field_groups;
  131. }