Blog

Module Monday: Maxlength JS

Text fields built using Drupal’s FormAPI have always supported a “Max Length” property; set it, and Drupal will kick back an error when someone submits too much data in the form field. CCK and FieldAPI support that property as well, allowing you to specify just how much text a user can enter into the fields

Read More
Applying a patch to a module

This video goes through the process of finding a patch from the Drupal.org issue queue, and then applying it to a contributed module. After testing the patch and confirming that it fixes the bug, we then walk through the process of reporting back that the patch has been reviewed and tested by the community and

Read More
Custom Drupal theme regions

From Drupal 4.7 onwards Drupal themers now have the ability to set their own custom block regions for their themes. This gives even more power to your theme and your ability to customize your themes. Blocks admin areaBy regions I mean the regions in the page template where you can assign block content like left-sidebar,right-sidebar,

Read More
Drupal theming tips and tricks

In the overriding theme functions tutorial we touched on using a template.php file within your theme and hopefully you saw how powerful it can be for theming overriding, so I’ll show you a few tips and tricks I have learnt here and there. 1) Organise your codeKeep your template.php file neat and tidy by using

Read More