Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a quick release to deploy a few new features and a quite simple performance enhancement that makes Modal Frames load faster.
There's no need to run update.php to upgrade. Just make sure your javascript caches are cleared. You should also rebuild your theme registry.
You may also want to check out the new Modal Frame Contrib Package. It comes with a few mini-modules that implement Modal Frames here and there.
Features:
Transform function triggerParentEvent() into a method of the modalFrameChild object, so it can be easily reused.
Added onLoad option to client-side modal frame (callback to invoke when the child document in the modal frame is fully loaded).
Package name replaced from "User interface" to "Modal frame", because we now have the modalframe_contrib package that provides a few modules that implement Modal Frame API for common day to day tasks.
Added onLoad event handler for the iframe element to catch up bugs in server-side of child processing when modalframe_child_js() is not invoked.
Added Drupal.theme('modalFrameThrobber') as a helper theme function that can be reused elsewhere.
Development snapshot of the Modal Frame API for Drupal 7.x
Note for those interested in Drupal 7 support for this modue: It seems this feature is being included in Drupal core itself. So, probably there will be no stable release of this module for Drupal 7 because it will be already there. :-D See: #517688: Initial D7UX admin overlay.
Initial release for the Modal Frame API module for Drupal 6.
Important notice: I'm sorry, but after I released 1.0 I found a couple of conflicts that happen on certain scenarios, and I'm working as fast as I can to fix them. I expect to get it during this week. So, please see this release as a proof of concept of the basic idea. I'll come back with a more stable implementation as soon as possible. Thanks for your patience.