I would like to add some custom settings to each field.
Similar to max_length.
How it's possible?
I've seen max_length is defined in text_field_settings()
So I've tried hook_field_settings, but it's even not executed on admin/content/node-type/%/fields/field_%
So should I make it in form_alter way?
Comments
Comment #1
markus_petrux commentedI think you need this: #417122: Allow drupal_alter() on Field and Widget Settings
Bump that one if it covers your needs, so maybe that helps to catch CCK maintainer's attention. ;-)
Comment #2
kenorb commentedThank you.
I did that already in form_alter, but it's not good looking (I can't setup proper weight):
Comment #3
kenorb commentedhttp://drupal.org/node/144132#form-id-alter
Example modules that using it:
nodeaccess_userreference
nodeaccess_nodereference
Comment #4
kenorb commentedComment #5
kenorb commented#417122: Allow drupal_alter() on Field and Widget Settings