[英]how do I make node_save work on newly defined column
所以我在drupal节点表中添加了一个列,然后将其添加到了hook_schema中。不能将其保存到数据库中...是否有一种方法可以指定node_save也保存到该新列中?
You should not extend core tables. 您不应该扩展核心表。
Instead, define your own table, reference the nid and then save/delete/update your additional field(s) in the appropriate hook_nodeapi() implementations. 而是定义您自己的表,引用nid,然后在适当的hook_nodeapi()实现中保存/删除/更新您的其他字段。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.