404
392
// We add a div around the new field to receive the ahah effect.
405
393
$field_form[$delta]['#prefix'] = '<div class="ahah-new-field">'. (isset($field_form[$delta]['#prefix']) ? $field_form[$delta]['#prefix'] : '');
406
394
$field_form[$delta]['#suffix'] = (isset($field_form[$delta]['#suffix']) ? $field_form[$delta]['#suffix'] : '') .'</div>';
408
397
// If a newly inserted widget contains AHAH behaviors, they normally won't
409
398
// work because AHAH doesn't know about those - it just attaches to the exact