$mail->setContentType("multipart/mixed;boundary={$mime_boundary}", false, false, false); } //END ENHANCED BINARY EXTENSION MAIL CODE ADDITION $mail->setBody($templateResult); $mailResult = eZMailTransport::send($mail); } $icMap = array(); if ($http->hasSessionVariable('InformationCollectionMap')) { $icMap = $http->sessionVariable('InformationCollectionMap'); } $icMap[$object->attribute('id')] = $collection->attribute('id'); $http->setSessionVariable('InformationCollectionMap', $icMap); if (is_numeric($redirectToNodeID)) { $Module->redirectToView('view', array('full', $redirectToNodeID)); } else { $display = eZInformationCollection::displayHandling($object); if ($display == 'node') { $Module->redirectToView('view', array($ViewMode, $NodeID)); } else { if ($display == 'redirect') { $redirectURL = eZInformationCollection::redirectURL($object); $Module->redirectTo($redirectURL); } else { $Module->redirectToView('collectedinfo', array($NodeID)); } } } } else { $collection->remove(); return $Module->run('view', array($ViewMode, $NodeID), array('ViewCache' => false, 'AttributeValidation' => array('processed' => true, 'attributes' => $unvalidatedAttributes), 'CollectionAttributes' => $collectionAttributes)); }