Drupal 6 FormAPI Presentation

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

  • + guestdd6b007b guestdd6b007b 1 month ago
    Hi - enjoyed your slideshow, could you add a couple more slides with the examples? That would be REALLY helpful!
Post a comment
Embed Video
Edit your comment Cancel

1 Event

Drupal 6 FormAPI Presentation - Presentation Transcript

  1. Drupal Forms by Blake Lucchesi
  2. FormAPI Intro Forms are defined by a single php array. Each key of the array is a form element. Drupal builds and generates the html output for the form using this FormAPI.
  3. Why a FormAPI? Provide a standardized means to create, process, and theme forms. Provides safe form error handling and validation. Allow other code (modules) to modify forms.
  4. Building a form Step 1: Define a new function that builds and returns a form array. Step 2 (optional): Define a function that validates the form values. Step 3: Define a function that process the form values on submit. Step 4: Call the form function using drupal_get_form() to present the form on a page.
  5. Basic Form
  6. WARNING Be careful to avoid naming your functions with reserved names: hook_form (Defines form arra

+ BoldSourceBoldSource, 9 months ago

custom

953 views, 0 favs, 0 embeds more stats

Drupal Camp LA 2008 Drupal 6.x FormAPI presentation more

More Info

CC Attribution License

Go to text version
  • Total Views 953
    • 953 on SlideShare
    • 0 from embeds
  • Comments 1
  • Favorites 0
  • Downloads 27
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as innappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

Categories

Groups / Events