I'm new to drupal 7.

I've create a custom field with extra columns via field api, and create the field well(via UI), but I can't "save" it while using the field.

I've google for it and found some keywords like


But still can't get what I want. Can someone give me advices?


Can you provide more details how did you implement schema, widget, formatter etc. I guess this link can be helpful for you http://www.slideshare.net/zugec/fields-in-core-how-to-create-a-custom-field

| improve this answer | |
  • [schema]: using hook_field_schema, with 4 extra columns in .install files and MigrateFieldHandler in .module [widget]: one column, #type=>textfield [formatter]: hyperlink (function l) – whc Mar 25 '16 at 1:37
  • great) what was the problem? – smile Mar 25 '16 at 21:11
  • I can't insert values in my custom field until I found hook_node_presave() – whc Mar 26 '16 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.