Multiple Drupal Sites on One GoDaddy Economy Hosting Account

Have you ever been lured by cheapness of GoDaddy Economy Hosting to host your Drupal websites? Did you then find out that they allow multiple domains but all of these domains need to point to one website, i.e one code base in the root folder? I have. But here's a neat little trick to have a different code base for each site.

jQuery Event Handling: Preventing Double Bindings

This post will show you how to deal with situations where event handlers are bound to elements more than once, causing multiple reactions when an event is triggered.

Two solutions will be covered:

  1. Using unbind() to clear previous bindings.
  2. Adding a class to the element after the first binding.

Consider the following snippet that binds a click event to a span tag. Depending on the placement of this snippet, two or more alerts may be spawned.

$("span").click(function () {

Quick and Smart Drupal Module Configuration

As a Drupal module developer, you may have spent some time coding mundane submit handlers for configuration forms. That can end after you read this post. There is a saviour out there. A saviour waiting to rescue you from the depths of coding boredom, waiting to take you to that place we all love and enjoy: PHP heaven!. That saviour comes in the form of the system_settings_form() function.