如果你要自己编写一个模块的话,.info 文件和 .module文件是一定要有的。
下面给出.info文件的一个示例:
; $Id: date.info,v 1.3 2008/02/18 19:32:28 karens Exp $
name = Date //在site building的modules中显示的模块的名字
description = Defines CCK date/time fields and widgets. //我们在site building的modules中,各个模块下面都会有一些介绍,就是这部分内容
dependencies[] = content //一些依赖的模块,就是说如果你要启用这个模块,就要先进行安装其所依赖的模块,即这边列出的模块名
dependencies[] = date_api
dependencies[] = date_timezone
package = Date/Time //我们可以发现,在site building的modules中,有很多的分类,这个就是那个分类的名字,如果不写的话,则模块会出现在other中
core = 6.x //模块的版本号,即是在那个drupal版本上开发的
; Information added by drupal.org packaging script on 2011-01-03
version = "6.x-2.7"
core = "6.x"
project = "date"
datestamp = "1294059080"