April 2011

taxonomy_node_get_terms_by_vocabulary replacement for drupal 7

taxonomy_node_get_terms_by_vocabulary() is not available in Drupal 7. I discovered this when I tried to install the Tweet Module whose D7 branch still relies on it. I re-wrote the D6 version of the function for D7 which returns the same array of term objects. This should help module maintainers port their D6 modules to D7. If there is a better D7 way to do this please let me know in the comments.

Simple Blogroll ported to Drupal 7

We have ported the Simple Blogroll module to Drupal 7. I did not write the original code, but I am now the new co-maintainer. You can see an example of it running on this site. This was my first attempt to write a Drupal 7 module and to use the new database APIs. Thanks to the coder module and some good documentation on drupal.org it was a relatively painless and straightforward process. 

Did some minor testing, got my name in the Chromium source code

Chromium has a Javascript library for detecting orientation in devices like phones, tablets and laptops that have accelerometers. I ran into an engineer at a meeting who needed some help testing this library on a specific Mac laptop that I had access to. Unfortunately, I didn't contribute any code, but I did get my name committed to the Chromium source code in a comment.

Server Admin Debug Menu

While troubleshooting an issue with a setting in Server Admin not sticking I discovered its "Debug Menu". Apple has a habit of hiding useful menus like this in applications like Safari. To enable the menu read on...

© 2011 Adam Gerson.