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.

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.

You might find it desirable to place views template files into a module rather than the site theme. If the module is a feature which contains a view and is something that you might want to use on another site, then it makes sense to group the view and it's templates in the same module. The following article describes how to tell views that your module contains views template files and how to tell features that you want to tell views that the module contains views template files.

We are enjoying using the Drupal Commerce Framework. Here are a few programming tips.

When you want even more control over an outputted field than display suite expert mode allows, you can put a theme function in template.php file. This article describes a neat design pattern for developers to use to experiment with a gives an example of how you might use it.

(Corny title, we know :) ) It's not often that we'd do a post on a single module, but today is that day... Extended path aliases: http://drupal.org/project/path_alias_xt

This is just a small post, but also a cautionary tale. From the moment you start working with Drupal and Javascript, you'll notice that the awesome jQuery library is thrown in for free. Not only that, but you've also got jQuery UI...

Some best practice advice on managing multiple users on a remote Linux server. When you might have several users logging into the same server to edit the same files, how should you manage your file permissions, so that they don't lock each other out?

In this article we explain how to trigger an ajax event handled by Drupal 7 at any time and not just on a form submission or link event.

There are a number of ways to access the data stored in a field attached to an entity in code. This blog post demonstrates some of the possible ways using the core functionality and the new Entity API

The above has long been a slightly confusing point since the dawn of the semantic web, when designers and developers moved away from using table elements. If you Google the above, you'll get a mixture of answers, ranging from absolute positioning to negative margins and use of line height. Yet, the simplest answer lies in the past. For a variable amount of text that you want to centre vertically and horizontally, you can use display: table-cell and vertical-align: middle...

Pure CSS Druplicon...

By Graeme Blackwood | 28th October 2011

With all the hype around logos in pure CSS at the moment, I thought I would join in the fun and recreate the Druplicon in CSS.