How To: Finding & Testing Out New Modules

Click to Watch

Drupal changes so fast that it’s hard to keep your head above water. Only now, are many site maintainers deciding to upgrade to version 6. The biggest reason for the delay, despite the amount of time version 6 has been out, is the slow going with various modules being updated.

So the question is… “How do I keep current with modules?”, and “What new modules replace the modules I’ve been using?”.

Well, much of this lies on your shoulders - such as reading the news. Fortunately, there are some tricks you can employ to get the information you need quickly.

In this video, I talk about the sites, tools and methods I use to keep up-to-date and notified about new modules and what modules provide which features.

If you’re interested in yet even more information about how I research modules then this video might help you out.

Here is the list of links I use for keeping up-to-date.

If you’re simply in need of the code I reference in the video article, then it’s right here to copy/paste.

Note: Change the my_drupal_root with the path to your drupal install location on your development machine. The following are functions you place into your .bashrc file.

d6mod()
{
MODULE="${1}"; cd my_drupal_root/sites/all/modules/; \
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib co -d ./$MODULE contributions/modules/$MODULE
}

d6theme()
{
THEME="${1}"; cd my_drupal_root/sites/all/themes/; \
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib co -d ./$THEME contributions/themes/$THEME
}

drevs()
{
cvs log "${1}" | egrep 'DRUPAL-.*:' | sort
}

Hi Matt.
Fantastic video.
As someone just in the middle of moving over to developing on Linux, this has helped a lot.
I’m looking forward to the video showing how you manage your sites, roll out changes using SVN.

Regards
Alan

Great video Matt.
I just wanted to add that I have modified the .bashrc functions a bit and they seem to make things a lot quicker for me.

I changed d6mod to automatically step into the module directory so I can update the freshly checked out module to the newest version quicker.

d6mod()
{
  MODULE="${1}"; \
   cd my_drupal_root/sites/all/modules/; \
  cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib co -d ./$MODULE contributions/modules/$MODULE; \
  cd $MODULE #new addition
}

I also added a new function that keeps me from having to remember the cvs up command you displayed in the video. Instead I now just use “dup DRUPAL-6—1-1” in the directory of the module I’m updating.

dup() {
  cvs up -dP -r ${1}
}

Nice tip on using Firefox keywords to search DrupalModules.com, that’s something I hadn’t thought of myself :)