The current approach with hook_field_attach_view_alter() adds an unnecessary <div> wrapper.

We can add the custom field class to the $classes_array in hook_preprocess_field(), and avoid any more div-itis.

Comments

andrewmacpherson’s picture

Status: Active » Needs review
StatusFileSize
new2.44 KB

here's a patch

andrewmacpherson’s picture

The .info file would also need changing here. The current description refers to a wrapper div.

Robin Millette’s picture

Status: Needs review » Needs work
andrewmacpherson’s picture

Version: » 7.x-1.0-rc1
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.