我想为我的内容类型创建模块。查看 drupal 字段 api 以及以编程方式创建内容类型的一些示例,我有一个基本模块。但有一些事情我似乎无法正常工作。
在 text_with_summary 上,我不知道如何设置行数,以及如何设置它以使其实际上具有摘要。我在代码中尝试了多种设置,但我的字段仍然有 20 行,并且摘要未选中。如果有人能给我指出一些好的例子,我会很高兴。
I want to create modules for my content types. Looking over the drupal field api as well as some examples of creating content types programmatically, i have a basic module. But theres a few things I can't seem to get working.
On text_with_summary, I have no idea how to set the number of rows, and how to set it so it actually has the summary. I've tried numerous settings in my code, and my field still has 20 rows, and the summary is unchecked. Be happy if anyone can even point me toward some good examples.
发布评论
评论(1)
我在尝试学习时倾向于查看示例模块。
http://drupal.org/project/examples
I tend to look at the examples modules when trying to learn.
http://drupal.org/project/examples