Closed (duplicate)
Project:
Field Remove Item
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2012 at 16:11 UTC
Updated:
26 Jun 2014 at 15:09 UTC
Jump to comment: Most recent
Comments
Comment #1
charlie-s commentedSomething as simple as adding a #prefix and #suffix to the $element in
field_remove_item_field_widget_form_alter()does the trick for me:but it might be best to add a single class to this element's wrapper, and I don't know how to target a form element's wrapper without implementing custom theme functions for an element type. In this case that's 'checkbox' and I would think it overkill to change the type of this element to "field_remove_item_checkbox" and implement a custom theming function.
Comment #2
pcambraMarking this as a dupe of #2242823: Add unique css class to Remove Button as the widget is now a button.