You are here

function hook_ds_fields_info_alter in Display Suite 7

Same name and namespace in other branches
  1. 8.4 ds.api.php \hook_ds_fields_info_alter()
  2. 8.2 ds.api.php \hook_ds_fields_info_alter()
  3. 8.3 ds.api.php \hook_ds_fields_info_alter()
  4. 7.2 ds.api.php \hook_ds_fields_info_alter()

Alter fields defined by Display Suite

Parameters

$fields: An array with fields which can be altered just before they get cached.

$entity_type: The name of the entity type.

1 function implements hook_ds_fields_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

ds_test_ds_fields_info_alter in tests/ds_test.module
Implements hook_ds_fields_info_alter().
1 invocation of hook_ds_fields_info_alter()
ds_get_fields in ./ds.module
Get all fields.

File

./ds.api.php, line 278
Hooks provided by Display Suite module.

Code

function hook_ds_fields_info_alter(&$fields, $entity_type) {
  if (isset($fields['title'])) {
    $fields['title']['title'] = t('My title');
  }
}