Mercurial > defr > drupal > popups
diff patches/3-allow-drupal-alter.diff @ 2:c076d54409cb
Popus: Version RF
author | Franck Deroche <franck@defr.org> |
---|---|
date | Fri, 31 Dec 2010 13:46:12 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/3-allow-drupal-alter.diff Fri Dec 31 13:46:12 2010 +0100 @@ -0,0 +1,13 @@ +Index: popups.module +=================================================================== +--- popups.module (révision 1196) ++++ popups.module (copie de travail) +@@ -153,6 +153,8 @@ + + $popup_js = array(); + ++ // Allow modules to specifically alter the JS used in a popup. ++ drupal_alter('popups_js', $js); + if (module_exists('jquery_update')) { + $replacements = jquery_update_get_replacements(); + $path = drupal_get_path('module', 'jquery_update') .'/replace/';