form_alter is an awesome

form_alter is an awesome Drupal hook, and that's all you need to use it really-- the commented out statements can be used to print everything about a form, which you can then use to mess with the elements.

One thing to do is for all strings put in single quotation marks which aren't part of the printout but are necessary when you collapse the form variables into linear array paths.

Posted by Benjamin Melançon on Mon, 2007-11-12 21:59
Reply
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup> <kbd> <s>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.