Embedded Forms

Categories

Component ID

1160684

Component name

Embedded Forms

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module creates an API for developers to use to embed ajax forms. The API desperately needs documentation but does the following:

Embed ajax forms either inline or in a dialog popup (with the help of dialog module) that are then submitted via ajax. It also supports numerous other events to occur after (or before) the form has been submitted. These include refreshing views or nodes, referencing the created node, editing fields, and a few other effects. It also provides hooks that can be used to execute other events via ajax when the form is submitted (or even just by clicking a link if you don't want to submit a form). Currently the supported forms are...

Node add
Node edit
Node comment
Node delete
User add
User edit
User delete

Links to embed forms are made using the embedded_forms_l function, which accepts the link text and an option array. Documentation is needed for the option array which provides the functionality listed above.

Permissions checks were recently added, the embedded_forms_l function will return null if the current user doesn't have the permission to perform the specified operation on the specified content.