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.
Drupal
Bonus Forms: A useful collection of Drupal forms information
Drupal Forms – The form_alter() Hook
What is the form_alter hook?
After following through my first tutorial on forms, you should be able to create a form, check that the input is as you require, and submit the data for processing. But what if you want to add functionality to certain areas of Drupal that you do not control, like contributed modules, or even Core?
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.
Tables in Drupal Part 2: Theme your Table
Last time we covered how to create a nice paged, sortable Drupal table with a selection of simple code snippets.
I don't know about you, but I hate repeating myself in my code. Tables are the kind of thing you need in nearly every module to keep track of the data you have added, so rewriting the same code can get very tedious very quickly.
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!
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.
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.