Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

A handy AJAX callback function #8

Open
wants to merge 1 commit into
base: 7.x-1.x
Choose a base branch
from
Open

A handy AJAX callback function #8

wants to merge 1 commit into from

Conversation

jamsilver
Copy link
Contributor

So this is something I used on LeBoat Booking Process.

Basically it allows you to specify the ajax commands you want to return on the '#ajax'-enabled form element itself, rather than needing to make a separate callback to handle it.

In my humble opinion, this makes the $form constructor easier to understand, because you can see all the logic in one place, rather than having to scoot around multiple places.

It may be one or two steps too close to crazy for some though =p.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant