Monthly Archives: March 2011

Multiple Submit Buttons on a Webform

I’ve spent a lot of time working with hook_form_alter() functions to modify forms, but the other day I was stumped by a simple problem. I needed to have two submit buttons on a form. By default, in the latest branch

Tagged with: , , , ,
Posted in Development

Dynamic and AJAX-driven Select Lists in Webform

This example is a two-for-one deal! I’m going to demonstrate how to dynamically populate a webform select list on page load dynamically populate a webform select list based upon the value chosen in another webform select list For both parts of

Tagged with: , , , , , , , ,
Posted in Development

Altering the basic properties of a Drupal textarea

The following example, when placed in your theme’s template.php file, will shrink the size of all of the “body” textareas on your site to 5 rows, and set the textarea as resizable. The function we’re using to alter the textareas

Tagged with: , , , ,
Posted in Development

Adding a Custom Token to the Ubercart (before version 2.3) Email Templates

This tutorial is for Ubercart versions earlier than version 2.3. There is a newer version of this example for Ubercart 2.3 or later. In this post I’ll show how to set up an extra token for use in an Ubercart template. This will

Tagged with: , , , , ,
Posted in Development