Field formatter label settings

Component ID

1187422

Component name

Field formatter label settings

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Development status

This module is obsolete. Please use the Field label plurals instead. It's a better implementation of the same functionality, at least as far as Drupal 7 is concerned.

For Drupal 8, I'd prefer to contribute back to field_label_plurals.

======

A sandbox project to explore extra settings for field labels, using the Field formatter settings API.

Initial use case is to allow single/plural field label settings, but other field label settings might be in scope for this project too.

Use-case example: Favourite Animals on a user profile.
A multi-value text field, zero-or-more values, called field_favourite_animals. The editing widget should be labelled 'favourite animals', since it allows for more than one animal to be entered. However, when displaying an instance of the field for a particular user's profile, the label should say 'Favourite animal' when just one value is specified, and 'Favourite animals' when two or more values exist.

Favourite animal: octopus
Favourite animals: Lions, tigers.

I'll promote this to a full project once I have some reasonable code in place.