Training

Our next U.S. stop:

Mike Anello and Andrew Riley from Mediacurrent are teaming up to offer the first Blue Collar Git workshop on Friday, June 8 as part of DrupalCamp Charlotte (also part of the Southeast LinuxFest). The cost is only $149 for the full day if you register during the month of May ($199 otherwise). 

New Podcast

Posted Wednesday, May 9 at 7:50 am
Brandon Morrison (Brandonian on drupal.org) joins Andrew Riley and Mike Anello on the first post-DrupalCon Denver edition of the podcast to talk about all things Geo in Drupal 7. Brandon is one of the maintainers of the GeoField module and is an active member of the Drupal Geo community.
Download Podcast 82
DrupalEasy_ep82_20120509.mp3
Syndicate content

Newsletter

Stay up-to-date on DrupalEasy workshops and other events. On average, we send about one newsletter per month.

Testimonial

Mike is a great teacher!

Who are we?

DrupalEasy is the collective expertise of Ryan Price and Michael Anello, who joined forces to provide training and consulting services worldwide. Read all about them and what they can do.

What is Drupal?

Drupal is a free, super-powerful content management system for sites that require information posting and collection, including blogs, forums, videos, photos, and databases of information. We think it is the best platform available. Here's why...

Why Drupal?

More and more savvy organizations are going with Drupal for content management, and its no mystery why. It’s free, flexible, and easy to maintain for small or large volume sites. Learn more...

Module Development: FormAPI and AJAX

Need to write a module that implements a form that needs some AHAH magic? Then use the awesome AHAH Helper module.

Here's a quick example for those of you who don't know what I'm talking about: let's say you have a form you've defined in your module (using FormAPI, of course) where you're asking the user to list their favorite types of trees. The form can initially supply 3 text fields for 3 types of trees, but what happens when the user wants to enter more than 3 trees? Using AHAH, you can provide a button on the form to "Add more tree types" - when the user clicks this, a new text fields is added.

Drupal 6 core has a built-in mechanism for doing this, but the AHAH Helper module greatly cuts down on the amount of code you have to write to get it done. The result is a very clean and easy-to-understand implementation.

Trackback URL for this post:

http://drupaleasy.com/trackback/141
Your rating: None Average: 2 (1 vote)

More Quicktips


Syndicate content