• Development

    Overriding Image Field Attribute Forms

    Another quick example for you…

    Here’s what the default image field form looks like, if you have enabled alt and title attributes:


    One way to modify the titles and help text (descriptions) of the Alternate text and Title attributes here is to use hook_field_widget_form_alter. Here’s what your code might look like:

    Here’s the result: