$newsletters[] = $newsletter;
                        }
                        $tpl->setVariable('delete_result', $newsletters);
                        $Result = array();
                        $Result['newsletter_menu'] = 'design:parts/content/newsletter_menu.tpl';
                        $Result['left_menu'] = 'design:parts/content/eznewsletter_menu.tpl';
                        $Result['content'] = $tpl->fetch("design:{$extension}/confirmremove_newsletter.tpl");
                        $Result['path'] = array(array('url' => false, 'text' => ezpI18n::tr('eznewsletter/list_newslettertype', 'Newsletter types')));
                        return;
                    } else {
                        if ($http->hasPostVariable('ConfirmRemoveNewsletterButton')) {
                            $newsletterIDArray = $http->sessionVariable('NewsletterList');
                            $db = eZDB::instance();
                            $db->begin();
                            foreach ($newsletterIDArray as $id) {
                                eZNewsletter::removeAll($id);
                            }
                            $db->commit();
                            return $Module->redirectToView('list_type');
                        }
                    }
                }
            }
        }
    }
}
$viewParameters = array('offset' => $offset, 'limitkey' => isset($userParameters['limitkey']) ? $userParameters['limitkey'] : 1);
$newsletterTypeArray = eZNewsletterType::fetchByOffset($offset, $limit, eZNewsletterType::StatusPublished, true, true);
$tpl->setVariable('view_parameters', $viewParameters);
$tpl->setVariable('limit', $limit);
$tpl->setVariable('newsletter_type_array', $newsletterTypeArray);