You are here

function hook_ds_label_options_alter in Display Suite 8.4

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

Alter the field label options.

Note that you will either update the preprocess functions or the field.html.twig file when adding new options.

Parameters

array $field_label_options: A collection of field label options.

1 invocation of hook_ds_label_options_alter()
_ds_field_ui_fields in includes/field_ui.inc
Add the fields to the Field UI form.

File

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

Code

function hook_ds_label_options_alter(array &$field_label_options) {
  $field_label_options['label_after'] = t('Label after field');
}