Reply to comment

So, you've got a Drupal 6 site, and you want to find out if the Drupal 7 versions of the contributed modules you're using are ready to go? Me too!

You could visit the project site for each module, but that's going to be time consuming. Plus, maybe you've got quite a few sites, each using different combinations of modules.

Drush should make quick work of this, right? Of course it will! But there are a few quirks to the process (at least the one that I came up with!).

Ingredients

  • drush!
  • the Drupal 6 site you are thinking about upgrading
  • an install of Drupal 7 (why? we'll find out later, promise!)

First up, we'll need a list of modules on your Drupal 6 site. That's easy enough. Just go to the directory for your Drupal 6 site and type

drush pml --type=module --status=enabled --no-core --pipe 

What's going on here? We're telling drush to give us a list of projects (pml) of the type "module" that are currently enabled. We're leaving out core modules, and --pipe will give us a big list of modules we can feed into another command, without all the extra info.

So, you should get a huge list that looks something like this:

adminrole
admin_menu
admin_theme
content
content_copy
fieldgroup
filefield
....

Next, copy that list into your favorite text editor and remove the line breaks. Now we have something we can work with:

adminrole admin_menu admin_theme content content_copy fieldgroup filefield

Next, we're going to use drush rl to get the release history for each module. drush rl is great, but if you run it within a Drupal 6 site, it gives you only the Drupal 6 release history (which makes sense, but isn't what we want in this case!).

So, head on over to your Drupal 7 installation (told you we'd need it!). This can be a stock install. If you don't have one, you can do a quick drush dl drupal to install a new one.

Now take your long list of modules, and tack it on to the end of this command:

drush rl adminrole admin_menu admin_theme content content_copy fieldgroup filefield

Wow! You'll get a mix of lines that look like this:

No release history available for itweak_upload 7.x. [warning]

And others that look like this:

------- RELEASES FOR 'CTOOLS' PROJECT -------
Release         Date              Status
7.x-1.x-dev     2011-May-17       Development
7.x-1.0-alpha4  2011-Mar-26       Supported, Recommended

Yeah! Now you have a much clearer picture of what's ready for Drupal 7, and what's not.

Note that as you look at the list of modules that report "No release history" you'll find quite a few that actually *are* ready, but have either moved into core or been consolidated in some way for Drupal 7. So, you'll still have some investigative work to do, but hopefully you'll have a much more informed view of things as you begin the big journey to Drupal 7. And you saved yourself quite a few clicks visiting all those project pages.

Good luck! And as always, let us know in the comments if there are other, better ways to approach this!

 

Reply

By submitting this form, you accept the Mollom privacy policy.