# HG changeset patch # User Franck Deroche # Date 1293800542 -3600 # Node ID 5efa741592f976b610cdc3bf66ad0f63ed1495c3 # Parent 4215c43e74eb1263b67a32024aa5da467658cfbf Add an alter hook to the js list. Makes it possible for a custom module to disable an auto-detected JavaScript in case you just know it won't work right in a popup. diff -r 4215c43e74eb -r 5efa741592f9 popups.module --- a/popups.module Fri Dec 31 13:44:00 2010 +0100 +++ b/popups.module Fri Dec 31 14:02:22 2010 +0100 @@ -179,6 +179,9 @@ unset($popup_js['core']['misc/jquery.js']); unset($popup_js['core']['misc/drupal.js']); + // Allow modules to specifically alter the JS used in a popup. + drupal_alter('popups_js', $js); + if (module_exists('jquery_update')) { foreach (jquery_update_get_replacements() as $type => $replacements) { foreach ($replacements as $find => $replace) {