function hook_ds_fields_info_alter in Display Suite 7.2
Same name and namespace in other branches
- 8.4 ds.api.php \hook_ds_fields_info_alter()
- 8.2 ds.api.php \hook_ds_fields_info_alter()
- 8.3 ds.api.php \hook_ds_fields_info_alter()
- 7 ds.api.php \hook_ds_fields_info_alter()
Alter fields defined by Display Suite.
This function is called for each entity type.
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 283 - 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');
}
}