[support] Mandatory files in a module.

Larry Garfield larry at garfieldtech.com
Mon May 26 05:15:44 UTC 2008


Strictly speaking, the .info is the only file that absolutely must be there.  
That's how Drupal finds the module.  The .module file will get included by 
Drupal automatically on every page load (Drupal 6 and earlier).  The .install 
file is where the install, update, and uninstall hooks must live, if they 
exist.  If they do not exist, then that file doesn't have to exist.  

The handbook has the format for info files, and api.drupal.org has the format 
for the install hooks.  .module files can contain all sorts of wacky 
things. :-)

On Sunday 25 May 2008, Sujit wrote:
> Hello Everyone,
>
> My team is working on providing NetBeans support for Drupal. As a part
> of this, I am currently involved in writing a plugin in NetBeans, which
> would assist in coding a module. The plugin is a wizard which would ask
> for a module name and on clicking finish button, would generate the new
> module folder along with the necessary files and code templates.
>
> I wanted help in this aspect. As per my understanding,
> <modulename>.info, <modulename>.install and <modulename>.module are the
> mandatory files in a module, right?
> Also, what would be the boilerplate code that I can put inside these files?
>
> Thank for the help in advance.
>
> With Regards,
> Sujit Nair


-- 
Larry Garfield			AIM: LOLG42
larry at garfieldtech.com		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson


More information about the support mailing list