我有一个自定义的 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 在节点形式中支持的那样允许多个值?
最佳答案
关于自定义表单中的 Drupal Nodereference,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2587906/