Viewing posts tagged Module Development

New Video Tutorials on Drupal 7's Token API

This week we're releasing a new series entirely devoted to using the Drupal 7 Token API. This series covers everything you need to know about creating, exposing, and using tokens in your Drupal modules. Since tokens can be a bit confusing, we kick things off with a presentation that covers what tokens are, some history, what problems tokens solve, and the token syntax. This is followed by the Drupal 7 Tokens Site Setup lesson that walks through the specific use-case that we'll be solving for in this series and a demonstration of the end result so that if you're following along you'll know where we're headed.

Unraveling the Drupal 8 Plugin System

Plugins play an important role in Drupal 8, and understanding how the entire plugin system works will help us better understand how, when, where, and why we use plugins.

Release Day: Get Started with Field API

Robust content modeling is made possible in Drupal 7 through fields. Attaching the right field types to entities makes it possible to bend your Drupal site to your will and scale it according to your needs. There are a lot of field types and field formatters provided in Contrib that you can download and install as modules to extend your Drupal 7 site. But what if you want to collect, store and format data in a particular way not provided by core or contributed modules? By providing custom fields and formatters through a module, you can control how your data is stored as well as provide one or more ways for the data to be output—through field formatters.

Drupal 8 Plugins Explained

As you start down the road of learning Drupal 8 module development, one of the first new Drupalisms that you're likely to encounter are plugins. After writing a blog post about creating blocks, which uses the new plugin architecture, I thought it might be interesting to take a step back and talk a little bit more about plugins at a higher level. This blog post contains an introduction to the what and why of plugins to help Drupal 7 developers make the transition to Drupal 8.

A Look Inside Drupal 8's Block Plugin API

The concept of blocks has been around in Drupal since the earliest versions. Chunks of information that can be placed into the regions provided by a theme and re-used throughout your site. The system for defining blocks in code has changed quite a bit for Drupal 8 though so it's worth taking a fresh look at how to create blocks in your own module. Especially since in my experience it's one of the first things we need to know how to do as module developers.

Drupal 8: Writing a Hello World Module

It's been a while since I've sat down and tried to write a module from scratch in Drupal 8. I've dabbled here and there in the various already existing modules but there's always something interesting about just trying to write that simple "Hello World" module. Sure, starting from scratch isn't really something we do all that often, but it's nice to to know how it works.

Release Day: Entity Admin UI and Fields

This week's installment of the Working with Entities in Drupal 7 series picks up the work on our new custom entity to work on creating an administrative UI, then dive into more nitty gritty with the entity controller. We'll look at how you can override the default controller to gain more control over how your entity gets rendered, and to add some of our own tweaks to the save processing. We wrap this week up by making our entity fieldable by using bundles.

New Series: Working with Entities in Drupal 7

This week we are kicking off a brand new series, Working with Entities in Drupal 7. Entities were introduced in Drupal 7, and are an extremely useful tool, though they have been somewhat confusing for people to work with. In this series we will start out by explaining what entities are, in addition to things like bundles, fields, and entity types. We then spend time understanding how you can use the Entity API to work with existing Drupal entities in you own custom module work.

New Series: Coding for Views

Views is without a doubt the most popular module on, and one of the reasons for it’s popularity is the plethora of modules that enhance the out of the box views experience. These modules add new display options like a calendar or Javascript caoursel, new formatters for existing fields, and even new backends so you can query things other than MySQL. Like Drupal itself views is written to be extended and it’s not uncommon to need to do just that in order to meet your site specific requirements.

Release Day: Module Development Looks at Databases

Happy New Year! The Module Development series is wrapping up by working our way through another major API in Drupal, the database layer. We have five videos to walk you through it.

Release Day: More Module Development

For this Wednesday, we're adding more videos to the Module Development for Drupal 7 series. We have three new videos for you:

  • Altering forms with hook_form_alter introduces you to one of the most used hooks in Drupal development. It lets you change any form in Drupal and is a great tool in your kit.