You are here

function ds_test_field_extra_fields in Display Suite 7

Same name and namespace in other branches
  1. 7.2 tests/ds_test.module \ds_test_field_extra_fields()

Implements hook_field_extra_fields().

File

tests/ds_test.module, line 49
Display Suite test module.

Code

function ds_test_field_extra_fields() {
  $extra = array();

  // Register a single field to test that
  // extra fields in the hidden region are really hidden.
  $extra['node']['article']['display']['heavy_field'] = array(
    'label' => t('Heavy extra test field'),
    'weight' => 10,
  );
  return $extra;
}