Drupal Bookmarklet to display a list of alpha and beta modules installed

I read a great post by Joel Sackett about a site they created for PBS using Open Atrium and Open Publish: Spreading The Love: Utilizing 2 Drupal Distributions To Achieve Efficiency
I wondered if there were any new Open Atrium releases that I missed and wanted to know just how ‘beta’ Open Atrium still is.
So I threw together a bookmarklet to display a list of alpha and beta modules installed.
I used it on the Available updates page in Drupal 6 (admin/reports/updates) in an installation of Open Atrium that I use to keep my custom modules arranged.
I ran the bookmarklet and it appended this to the bottom of my node.

ALPHA Modules:
4 items:
1: Atrium Features 6.x-1.0-alpha11
2: Comment Upload 6.x-1.0-alpha5
3: Crossref 6.x-1.0-alpha2
4: Litecal 6.x-1.0-alpha5
BETA Modules:
12 items:
1: Case Tracker 6.x-1.0-beta9
2: Coder 6.x-2.0-beta1
3: Crayon 6.x-1.0-beta2
4: DesignKit 6.x-1.0-beta1
5: Feeds 6.x-1.0-beta10
6: iCal feed parser 6.x-2.0-beta1
7: ImageCache 6.x-2.0-beta10
8: Job Scheduler 6.x-1.0-beta3
9: Persistent URL 6.x-1.0-beta13
10: Relative date 6.x-1.0-beta2
11: Team Notifications 6.x-2.1-beta8
12: U Create 6.x-1.0-beta4

16 modules.
That’s quite a few. My concern is that the Drupal security doesn’t review alpha or beta modules so it’s up to the site admin to follow the status of each module to see if there are any security holes to watch out for or patches to apply.

In case you’re interested here’s the bookmarklet

<a href="javascript:function%20displayModulesWithThisName(nameValue){$('body').append(nameValue.toUpperCase()+'%20Modules:%20n
'+$('.project:contains('+nameValue+')').length+'%20items:%20n
');$('.project:contains('+nameValue+')').each(function(index){$('body').append((index+1)+':%20'+$(this).text()+'%20n
');});}displayModulesWithThisName('alpha');displayModulesWithThisName('beta');void(0);">Drupal display alpha beta modules

and here’s the code:

javascript:
function displayModulesWithThisName(nameValue) {
  $('body').append(nameValue.toUpperCase()+ ' Modules: n&lt;br /&gt;'+ $('.project:contains('+nameValue+')').length + ' items: n&lt;br /&gt;');
  $('.project:contains('+nameValue+')').each(function(index) {
  $('body').append( (index + 1) + ': '+$(this).text() + ' n&lt;br&gt;');
});
}
displayModulesWithThisName('alpha');
displayModulesWithThisName('beta');
void(0);

It’s composed of one function that appends the body with a list of projects containing the search term requested. And I requested two: alpha and beta.
That could be turned into a prompted bookmarklet in short order; asking you for the term to search for but I don’t have a need for that at this point.

Leave a Comment