I live in Auckland NZ, and enjoy being a Dad, snowboarding and contributing to open source. more
UPDATE: Due to recent changes to our website the code snippet (the valuable part of this blog post) got accidentally lost. If you read this already, please come back to see the sample code. Thanks!
Often you want to add CSS files, scripts, feed icons or even set Drupal's page title from the theme layer. The most obvious place to call Drupal's functions for these tasks is probably in a page preprocess function. However calling the following Drupal API functions from a theme or module's
NAME_preprocess_page() function often doesn't work;
SignOn.org.nz – a Drupal site – was implemented by Catalyst IT, a FLOSS software shop in Wellington New Zealand which employs Josh "fiasco" Waihi, Drupal 7 PostgreSQL maintainer and NZ IT Rockstar 2009 winner and Brenda "shiny" Wallace, Drupal contributor.
Catalyst has done an excellent job and the campaign was featured in NZ's national Sunday newspaper a couple of weeks ago.
They've got many Kiwi celebrities on for the campaign, some which are known internationally too; Most notably Lucy Lawless (Xena Warrior Princess) and Keisha Castle Hughes (From Whale Rider and award-winning other films).
I recently read a fascinating survey of 1000 blind and visually impaired internet users. It's a long article but is largely graphs and data tables – so is easily consumed. If you want the short version, check out the comments and conclusion.
The most surprising parts for me were;
The NZ SSC has rejected Microsoft's offers for a new licensing contract. This is a big loss for Microsoft (Though I'm sure MS would have you believe otherwise and try to paint the picture back to front) and big win for NZ Government and NZ's IT industry.
Vertical tabs are finally in Drupal core!
A week ago Angie "webchick" Byron committed a large patch from #323112 Vertical Tabs to Drupal 7 core. This change is quite possibly the most significant usability enhancement to Drupal 7 to date. Two of the three formal usability tests did usability testing with vertical tabs and reported positively.
UPDATE: See other issues about vertical tabs in Drupal core .
What is more interesting about this however, is the process, time and effort that it took to get this change into Drupal core. It all started over a year ago, well before DrupalCon Boston 2008 even before Drupal 6 had a stable release. The discussion around part of that patch goes back as far as November 2007! Along the way countless people have been involved in many discussions, worked on heaps of mockups, lots of prototypes, and loads of code.