Burrito Maker: How to Create Custom Fields in Drupal 8

A detailed tutorial on creating custom fields in Drupal 8 using the field API.

Read More about Burrito Maker: How to Create Custom Fields in Drupal 8 »

Node smuggling, aka poor mans node_export

I needed to create a new webform on a production site recently. But as a dev, I don't have direct access to the production admin backend; I'm only allowed to push code changes and let the client's team migrate them to prod via drush updb. So I'm supposed to export the webform configuration to code, and deploy it via an update hook, but how?

Read More about Node smuggling, aka poor mans node_export »

Poutine Maker: An Introduction to the Field API in Drupal 7 (Part 2)

In part 1 of this tutorial, I covered how to make your own custom field and widget. Here I'll cover how to validate that input and format it using a custom formatter.

Read More about Poutine Maker: An Introduction to the Field API in Drupal 7 (Part 2) »

Poutine Maker: An Introduction to the Field API in Drupal 7 (Part 1)

The power of Drupal stems from our ability to customize it. One common requirement is the need to define complex fields with custom widgets and formatters that are unavailable in core or contributed modules. This allows us to collect more sophisticated data from users, and define exactly how that data is presented. Drupal 7's Field API provides the hooks needed to make just about any field we want.

Read More about Poutine Maker: An Introduction to the Field API in Drupal 7 (Part 1) »

Montreal Drupal Meetup at Notman House

Montreal's March Drupal Meetup was held this past Wednesday at Notman House, a co-working space and hub for entrepreneurship and tech innovation in Montreal. I think the exciting new venue was at least partly responsible for the fantastic turnout of 28 Drupal enthusiasts.

Read More about Montreal Drupal Meetup at Notman House »

Creating a Template for a Custom Drupal Block

We often define custom blocks in a site-specific module. Sometimes the markup in these blocks can start building up and we realize that it's time to create a template for the block. This is a good way to keep markup out of the module code. It's also a good way to practise writing cleaner and more themer-friendly modules.

Read More about Creating a Template for a Custom Drupal Block »