Page Chapter 10. The Form API, Page 162
Sat, 05/10/2008 - 6:14am — TUc
Location on the page:
Title: "Call Order of Theme, Validation, and Submission Functions"
Error:
The form definition has set the optional $form['#base'] property to foo.
The book states that Drupal will look for theme functions called:
bluebeach_formexample_foo()
phptemplate_formexample_foo()
theme_formexample_foo()
These functions are incorrectly named, because drupal will look for "theme name" plus $form['#base']
The same issue with the validation and sumission functions:
formexample_foo_validate()
formexample_foo_submit()
Correction:
bluebeach_foo()
phptemplate_foo()
theme_foo()
And for the validation en submission functions:
foo_validate()
foo_submit()
Description of the Error:
incorrectly named functions
