Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
For an application for Field Collection I'm implementing, the order of fields is irrelevant, and it would be nice to be able to switch off display of field weight in the field Settings [I'd be quite happy with no reordering ability in this case.]
I guess it's possible to hide the page elements ("Show row weights", the + and table column, etc) in CSS: is there a better way?
Comments
Comment #1
nhck CreditAttribution: nhck commentedThere is no way to do this yet, but I think its a feature request worth noting.
Comment #2
semiaddict CreditAttribution: semiaddict commentedI am not sure this is the best way to do it, but you could achieve this by overriding theme_field_multiple_value_form
Here's an example (change MY_THEME to the theme name and MY_FIELD_NAME to the name of the field) :
Comment #2.0
semiaddict CreditAttribution: semiaddict commentedClarification
Comment #3
jmuzz CreditAttribution: jmuzz commentedI'd try using a form_alter hook to change the _weight element. Possibly change it to hidden, or set its #access to false, or unset it altogether.
Hope this helps.
Comment #5
firewaller CreditAttribution: firewaller commentedI know this is closed, but I just wanted to report that I couldn't get #2 or #3 working, but I ended up using this contrib module: No Table Drag.