Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By minigammi on
Hi everyone.
I've added 3d-party setting to field by implementing MY_MODULE__form_field_config_edit_form_alter hook and using $form['third_party_settings'] and it works well.
But also I want to add extra-setting to field instance.
For example. I've added checkbox for image field like 'Add CSS class to image'. And when I create node that have this field I want to see textfield for CSS class in field widget and save it value in 3d-party settings for this instance.
How can I do this?
Best regards.