Favorite Drupal tips or best practices?

drupal

Solution

When setting up a new site, we immediately create a blank custom module named after the site/project. This becomes the central place where to put all the small fixes/kludges/tweaks that pop up to solve all those minor change requests that are not really features and do not call for a full blown module (at first ;) - this module should be regularly reviewed and refactored to remove stuff that became obsolete or to pull out stuff that turned into a feature, thus deserving a full module on its own.

Same for themes - whatever theme we start our sites with, usually it will get modified quickly/immediately, so best to rename it to the site/project from the beginning.

The 'site module' complements the 'site theme', in that it contains the business/workflow/data related tweaks/manipulations that otherwise would end up cluttering the themes template.php file (which should really only contain theme specific stuff).

Problem

Just wondering what tips or tricks you guys might have to share. As always with posts like this, please only one tip per post so they can be voted on independently. I'll start: however you do your theming, you can use the mothership theme as a base theme for your theme to inherit from so that your markup will be a lot cleaner and less verbose.

Original source