Managing multiple affiliate sites under single Drupal installation
Earlier when I got introduced to Drupal, I wanted to create multiple websites under a single Drupal installation. It was a very tedious task to develop different websites for each and every topic and reinstall the necessary modules and themes for every new installation. It was a huge time-consuming task and each new website took up unnecessary additional server space.
How to create a custom login functionality in Drupal 6
Sometimes it is very much necessary that we override the existing login functionality of Drupal and write our own custom login validations. This can usually be done using the form_alter hook. In my case I wanted to check whether the user enters a particular username and password and direct him to the necessary page based on the password that he enters.
Be sure to check what is the name of your login form. In my case it was user_login_form. You can save the code below as testmod.module and be sure to create an .info file for the same.
How to create MySQL tables dynamically using hook_schema
Using the hook_schema you will be able to create MySQL tables dynamically during run-time. In the .install file you will have to specify the name of the table and its related fields. In the .module we try to insert values to the table which is created dynamically.
How to override Drupal registration form
Here in the example below, we see how to override Drupal's existing registration functionality. Here we create 3 files such as .info file, .install file and .module file. In the .install file we create a MySQL table to hold the details of the members who have registered.
In the .module file we override the existing Drupal registration form using form_alter.
Social Networking