自定义表单中的Drupal Nodereference

我有一个自定义Drupal FAPI表单,支持相当复杂的工作流程,我想为它添加一个Nodereference字段.虽然我找到了在自定义表单上包含Nodereference字段的人,但是我无法找到该字段的FAPI声明的任何示例(除了这个使用带有Nodereference AHAH回调的文本字段的问题:
Is it possible to customise drupal node reference and pass your search and a argument from another field).

那么:将Nodereference字段添加到自定义表单(FAPI)的最佳方法是什么?

额外问题:是否有一种简单的方法可以在节点形式中允许CCK支持多个值?

最佳答案 开始学习ahah:
‘add another item’ in non-CCK Drupal forms

尝试调查此问题的人:http://drupal.org/node/266584#comment-870376

点赞