Drupal 模块 .info 文件的基本写法

Drupal 6 模块 .info 文件示例

name = "Example module"
description = "Gives an example of a module."
core = 6.x
package = Views
dependencies[] = views
dependencies[] = panels

详细说明请参见官方文档:Writing .info files (Drupal 6.x)

 

Drupal 7 模块 .info 文件示例

name = Example module
description = Gives an example of a module.
core = 7.x
package = Views
dependencies[] = views
dependencies[] = panels
files[] = example.test
configure = admin/config/content/example

详细说明请参见官方文档:Writing .info files (Drupal 7.x)

打赏一下,鼓励Ta创作更多优质内容!
打赏