view 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 source
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/';