we're looking for a way to make confirmation forms generated by confirm_form() show up in a modal window. Is this possible with this module? if so, is there any documentation on how we might go about getting started on this?

thanks!

Comments

markus_petrux’s picture

Status: Active » Postponed

We need to find a way to guess a link drives you to a confirmation page. In such a case, we need to call modalframe_parent_js() so that we can open the confirmation page in a modal dialog, then we need to hook into confirm_form to close the dialog when the work is done. The client side callback that fires after a form is submitted would have to deal with drupal_set_message() output generated from the submit callback of the confirm_form, and it probably needs to refresh the parent page, or update content dynamically.

I think this will be a lot easier as soon as we have meat to digest here #572120: Ease of use/implementation.

markus_petrux’s picture

Status: Postponed » Closed (won't fix)

Please, read my comment #26 in the following issue:

http://drupal.org/node/572120#comment-2425462

I think this kind of enhancements can really be implemented in mini-modules that can be included in the Modal Frame Contrib Package. Each feature has its own particularities, and it is not really easy to provide a universal solution for all, mostly because I think the Modal Frame API itself is still a tool for developers.

Deployments of features that take advantage of the Modal Frame API can be implemented by separate contrib modules, in the above mentioned package, or separate packages.