showroom.field_group.inc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * @file
  4. * showroom.field_group.inc
  5. */
  6. /**
  7. * Implements hook_field_group_info().
  8. */
  9. function showroom_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_showroom|node|materiau|form';
  15. $field_group->group_name = 'group_showroom';
  16. $field_group->entity_type = 'node';
  17. $field_group->bundle = 'materiau';
  18. $field_group->mode = 'form';
  19. $field_group->parent_name = 'group_htabs';
  20. $field_group->data = array(
  21. 'label' => 'Showroom Samples',
  22. 'weight' => '17',
  23. 'children' => array(
  24. 0 => 'field_localisation',
  25. 1 => 'field_location',
  26. ),
  27. 'format_type' => 'htab',
  28. 'format_settings' => array(
  29. 'label' => 'Showroom Samples',
  30. 'instance_settings' => array(
  31. 'required_fields' => 1,
  32. 'classes' => 'group-showroom field-group-htab',
  33. 'description' => '',
  34. ),
  35. 'formatter' => 'closed',
  36. ),
  37. );
  38. $field_groups['group_showroom|node|materiau|form'] = $field_group;
  39. // Translatables
  40. // Included for use with string extractors like potx.
  41. t('Showroom Samples');
  42. return $field_groups;
  43. }