How to design a good API

morphir:

This was a outstanding presentation on software design.

And my question could probably not be better timed: where can I see all available form properties for form API?

What if we could look up all the different properties on http://api.drupal.org? Then use tagging to easier find the property you need.

I recently found out that #cache is new to Drupal 6(fapi3).
So: #cache is a boolean value (true/false) that caches the value that are being submitted. Tags: store, cache, save.

July 10, 2007 - 13:59
Wim Leers:

See the Forms API Quick Reference (also contains information about how to write functions to validate and submti forms). And there's also the Forms API Reference that describes all properties and form elements in core. I'm sure they'll be updated for Drupal 6.

July 10, 2007 - 14:06

Post new comment

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>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

© 1999-2007 Dries Buytaert Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.
Drupal is a Registered Trademark of Dries Buytaert.