Making a custom module in Drupal can be as easy or difficult as you would like it to be. For the purpose of the post we will be making a simple module in Drupal that you can use to alter forms.

Step 1
Make an info file for your module call it and rename the "mymodule" to whatever you will be calling your module.
In the info file you can put various items, but the only thing you will need is the following:

Drupal 5.x

name = "mymodule"
package = "My Modules"
description = "Put Description Here"

Drupal 6.x

name = My Module
description = "Put Description Here"
core = 6.x

If you plan on publishing this module you can put additional information in the file.

Step 2
Make a module file called mymodule.module and once again rename "mymodule" to your module name.
This module is going to be to alter forms so we will put the following code in.

Drupal 5.x
...Read more

When starting a new Drupal site, I almost always install a handful of modules first thing. Here are my top 10 and why you should use them.

*Modules listed below are in no particular order

  1. Pathauto: Drupal Core ships with a URL aliasing function, however this module expands upon that and adds automatic URL aliasing. This can be based on node type in conjunction with Tokens.

  2. Adminmenu: This module does nothing for your site, it is strickly for navigation of admin menus. This module however has increased my work flow dramatically because I spend a less time waiting for pages to load to get to the page I want.

  3. ...Read more