[development] FAPI's future

Larry Garfield larry at garfieldtech.com
Wed Aug 8 14:58:12 UTC 2007


On Wed, 8 Aug 2007 08:57:14 -0500, Jeff Eaton <jeff at viapositiva.net> wrote:

> This is a good case for hook_forms() being a requirement, not an
> optional mechanism. Right now, users can just call drupal_get_form
> ('lovely_delicious_bacon') and FAPI will go about its business
> happily, checking for a lovely_delicious_bacon() function, then
> checkig hook_forms() to see if lovely_delicious_bacon was really
> mapped to my_module_bacon_form().
> 
> If we were to make even the simple forms require the use of hook_forms
> (), we would have a very simple transition and an easy place to put
> descriptive metadata. ("What kind of form is this? What module does
> it belong to?" Etc.)

... what separate .inc file does it live in... ;-)

--Larry Garfield



More information about the development mailing list