tutorials

You can be a wizard or: How I learned to stop worrying and love the code.

In 1989 I sat down at an Apple II E to write my first bit of code in BASIC. It made the screen invert colors, so text appeared black, and the screen was the strange, alien green that early monitors seemed to favor. 20 years later I took a basic JavaScript class in college. That was the most code I had written until recently, and it wasn't due to lack of interest, rather lack of any kind of directed learning. I tried buying books, but you can't ask books questions, and I didn't know anyone who wrote code to ask.

How to Add Theme Settings for Drupal 7

You know that list of checkboxes on the theme settings page that let you turn on and off parts of the theme like the logo or slogan? Well, you can add your own options to that list really easily in Drupal 7. In D6, this was kind of a pain, because you had to write all sorts of functions to save and load your settings to the database and handle everything properly. In D7, that's all done through the Form API, so the heavy lifting is done for you. All you need to do is tell it to add some form fields, and what the new setting is called!

Ready for transformation?