Category Technology
Publication date
31 August 2009

Coder Module: Upgrading your code to Drupal 7

Drupal 7 code freeze is almost upon us, and you may now be considering upgrading your modules and themes. To make that process as easy as possible, I've been working hard to update the Coder module with all the necessary Drupal 6 to Drupal 7 reviews to help you identify where in your module or theme you need to make changes.

In the Drupal 7 version of Coder, we've made a number of changes. The coder module is now a package containing two modules, "Coder Review" and "Coder Upgrade". "Coder Review" is the same as the old coder module and identifies where in your code changes need to be made, while "Coder Upgrade" is a new version of the Deadwood module which will actually upgrade your modules for you! The coder upgrade module automates much of the updating of your modules to Drupal 7, making the task much easier and hassle free. It makes all changes to a copy of your module's files, so you'll still have the original to compare against.

However, we're not quite there yet. We still have a lot of coder review and upgrade rules to write, but you can help! The page at http://drupal.org/node/394070 lists all the Drupal api changes and tracks their latest status in coder. If you want to get involved, why not pick one of the todo items off the list and help speed things along.

Profile picture for user Stella Power

Stella Power Managing Director

As well as being the founder and managing director of Annertech, Stella is one of the best known Drupal contributors in the world.