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.
The behavior of a "locked" field is documented as "TODO: undefined," but it seems to be relatively well defined: If a field is locked, you can't edit it or create new instances via the UI. There's also a TODO about maximum lengths for field, widget, and formatter names.
Comment | File | Size | Author |
---|---|---|---|
#3 | 872068-3-field-crud-documentation.patch | 1.29 KB | ksenzee |
#1 | 872068-field-crud-documentation.patch | 1.35 KB | ksenzee |
Comments
Comment #1
ksenzeeI had a quick look around, and I still don't know the maximum lengths for widget and formatter names, but here's a patch that documents locked fields and the maximum length for field names.
Comment #2
jhodgdonhttp://api.drupal.org/api/function/_field_write_instance/7
It looks like the widget and formatter names are just stored in a serialized blob. They are $instance['widget'] and $instance['display']:
So I don't think they have any maximum length, at least not one enforced by the database.
Comment #3
ksenzeeI took a second look around, and I agree. Here's a rerolled patch with the TODO removed entirely.
Comment #4
jhodgdonLooks fine to me - thanks!
Comment #5
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.