Educating Drush

By Dan James | 16th January 2013

There is a wealth of site specific information that can be placed into a site's drushrc file. Here are some of our favourites.

Fixing problems when you see them and cleaning code as you go might cause you delays in the moment but can pay you back many times over in the future.

The Deeson Online developers get involved in Drupal 8 core development, including action photos!

Software design patterns are an important part of every Software Engineers toolkit. This article is a short discussion of what it is, why it's important and where to find out more.

Eager to keep up with the big changes heralded by Drupal 8, I headed to London for Symfony Live London 2012 - 13th & 14th September 2012. This was a two-day event organised by Sensio Labs, the creators of Symfony. It was the first major Symfony event to be held in London.

When a site developer exports a feature to code, all the values stored against that feature on the site they export from are saved into code. It may be necessary to customise one or two of those variables for a particular environment later. If the export uses ctools then there is a hook that can alter an exportable as it's being imported.

If you use a Boolean field with radio buttons in Drupal 7, the false radio button outputs before the true. This became an annoyance to us whilst working on mega-sized forms, so here's our fix. To fix this you'll need to create a custom module, and implement the hook hook_field_widget_form_alter(). The following code assumes your module is called 'example'. All the code does is reverse the order of the options whilst preserving the keys, simple!

The purpose of this walkthrough is to achieve a link with a tokenised taxonomy URL. This is sometimes required if you have a content type with a taxonomy field of Author or Issue and you want to link to a taxonomy page or view using taxonomy values as contextual filters. Or for instance you want to theme a taxonomy field output on a node page and you are using the taxonomy value as part of a custom URL.

Drupal Store

I've been having fun working with the Drupal Association on the design for their new Drupal store.

Here is a handy tip for people using the variable module to get a list of all the possible types of variable the variable module supports.

Pages

Subscribe to Drupal Planet