开发者

Drupal Nodereference in a custom form

开发者 https://www.devze.com 2022-12-26 02:02 出处:网络
I have a custom Drupal FAPI form that supports a fairly complex workflow and I would like to add a Nodereference field to it.Although I\'ve found people who have included Nodereference fields on custo

I have a custom Drupal FAPI form that supports a fairly complex workflow and I would like to add a Nodereference field to it. Although I've found people who have included Nodereference fields on custom forms, I have been unable to find any examples of the FAPI declaration for the field (other than this question which uses a text field with the Nodereference AHAH callback: Is it possible to customise drupal node reference and pass your search and a argument from another field).

So: what is the best way to add a Nodereference field to a custom form (FAPI)?

Bonus question: is there a simple way to allow for multiple values like CCK supports in a node 开发者_高级运维form?

Drupal Nodereference in a custom form


Starting learning ahah here: 'add another item' in non-CCK Drupal forms

Someone who try investigate this: http://drupal.org/node/266584#comment-870376


You can go to check the article: Adding dynamic form elements using AHAH http://drupal.org/node/331941

0

精彩评论

暂无评论...
验证码 换一张
取 消