function ds_test_entity_extra_field_info in Display Suite 8.2
Same name and namespace in other branches
- 8.4 tests/modules/ds_test/ds_test.module \ds_test_entity_extra_field_info()
- 8.3 tests/modules/ds_test/ds_test.module \ds_test_entity_extra_field_info()
Implements hook_entity_extra_field_info().
File
- tests/
modules/ ds_test/ ds_test.module, line 42 - Display Suite test module.
Code
function ds_test_entity_extra_field_info() {
$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;
}