You are here

function hook_ds_label_options_alter in Display Suite 7

Same name and namespace in other branches
  1. 8.4 ds.api.php \hook_ds_label_options_alter()
  2. 8.2 ds.api.php \hook_ds_label_options_alter()
  3. 8.3 ds.api.php \hook_ds_label_options_alter()
  4. 7.2 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.tpl.php file when adding new options.

Parameters

$field_label_options: A collection of field label options.

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

File

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

Code

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