function hook_ds_fields_ui_alter in Display Suite 7
Same name and namespace in other branches
- 7.2 ds.api.php \hook_ds_fields_ui_alter()
Alter fields defined by Display Suite just before they get rendered on the Field UI. Use this hook to inject fields which you can't alter with hook_ds_fields_info_alter().
Use this in edge cases, see ds_extras_ds_fields_ui_alter() which adds fields chosen in Views UI. This also runs when a layout has been chosen.
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_ui_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- ds_extras_ds_fields_ui_alter in modules/
ds_extras/ ds_extras.vd.inc - Implements hook_ds_fields_ui_alter().
1 invocation of hook_ds_fields_ui_alter()
- _ds_field_ui_fields in ./
ds.field_ui.inc - Add the fields to the Field UI form.
File
- ./
ds.api.php, line 298 - Hooks provided by Display Suite module.
Code
function hook_ds_fields_ui_alter(&$fields, $context) {
$fields['title'] = t('Extra title');
}