News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Digett.com:
How to Theme the Comment Form in Drupal 6
July 01, 2010 @ 11:26:02

If you're a Drupal user and are looking for a way to change up that standard comment form that comes pre-loaded in the site, you should check out this new post on the Digett blog about the handy hook_form_alter function.

I've grown to have an affinity for Drupal's hook_form_alter function. Truly, modifying a form doesn't have to be as complicated as it may seem. One of the most generic Drupal forms (in my opinion) is the pesky comment form. Out of the box, it comes complete with name, email, homepage, subject, and comment fields.

A few snippets of code included in the post show you how to customize the form by removing some fields, changing labels on others and update the value of one of the buttons - all with a simple implementation of a hook theme.

0 comments voice your opinion now!
drupal theme content form hookformalter tutorial


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Scalability and Responsiveness with Zend Platform's Job Queue

Ulrich Kautz: PHP Validation & Sanitization

Mpwebwizard.com: Use a mirror for hits from popular websites

SitePoint PHP Blog: Fractal: a Practical Walkthrough

Stoyan Stefanov's Blog: phpBB front-end optimization - 1 hour workshop


Community Events

Don't see your event here?
Let us know!


extension opinion threedevsandamaybe wordpress laravel community language framework laravel5 introduction development feature voicesoftheelephpant interview series api podcast unittest library release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework