| 1 |
<?php |
<?php |
| 2 |
// $Id: popups.module,v 1.11.8.5 2009/03/05 23:49:55 starbow Exp $ |
// $Id: popups.module,v 1.11.8.9 2009/03/19 15:53:44 starbow Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 94 |
*/ |
*/ |
| 95 |
function popups_form_alter(&$form, $form_state, $form_id) { |
function popups_form_alter(&$form, $form_state, $form_id) { |
| 96 |
// Add popup behavior to the form if requested. |
// Add popup behavior to the form if requested. |
| 97 |
|
// dsm($form_id); |
| 98 |
$popups = popups_get_popups(); |
$popups = popups_get_popups(); |
| 99 |
if (isset($popups[$form_id])) { |
if (isset($popups[$form_id])) { |
| 100 |
popups_add_popups($popups[$form_id]); |
popups_add_popups($popups[$form_id]); |
| 175 |
|
|
| 176 |
// A special exception, never include the popups settings in the JS array. |
// A special exception, never include the popups settings in the JS array. |
| 177 |
// ??? |
// ??? |
| 178 |
unset($popup_js['setting']['popups']); |
// unset($popup_js['setting']['popups']); |
| 179 |
|
|
| 180 |
return $popup_js; |
return $popup_js; |
| 181 |
} |
} |