Bonus Forms: A useful collection of Drupal forms information

After posting an example of the Drupal form_alter hook, I thought it could be useful to post a list of places where you can find extra information about the Drupal forms system.

Official Drupal pages

These are pages form the Drupal API. They serve as a fantastic starting point for any new Drupal developer, or as a place to come for a quick look at the available features.

Drupal Forms - Your First Form

So you need a Form. Where do you start?

If you're anything like me (which I hope you are, because you're reading this!), then you'll want to look at the Drupal Forms API.

What is the Drupal Forms API?

The Forms API is part of Drupal that is used to generate Forms. It allows you to use all the features of Drupal (access control, input filtering, theme control), and apply them to a form.

Tables in Drupal: Making a perfect table

Have you ever...?

Have you ever wanted to make a table in Drupal, using theme_table? Well, what about adding extra links, like for options (Edit / Delete etc)? And how about sorting it? Pager anyone? Well this tutorial will show you how to do all that. After this you will be a Drupal Table master!

Step 1: Define your headers

What are the names of the columns?

This sounds silly, but it will come in useful later on in the process.

You can find out by looking at the corresponding table in your database

Drupal Input Filters Part 2: The Content Switch-a-roo

Where were we?

Ok, last time we looked at the ideas behind Input Filters in Drupal, so we covered Input Formats, how to configure them and what they can do for you. Now we get the real good stuff; how to make one.

Outline

Before we go any further, we need a reason to make an input filter. Do you play Xbox? I do. Wouldn't it be great if we could somehow allow members of our site to display their gamertag? Well, with Input Filters, you can.

Drupal Input Filters: How they work and why you should use them.

Input Filters are a great feature of Drupal. They can be very useful. They allow you to:

  • Modify the output of a user's submission without changing their input (one of Drupal's golden rules)
  • Hide complicated code to do clever things

What do I mean by these things? well, allow me to explain.

Follow on Bloglovin
Top