12 lines
307 B
PHP
12 lines
307 B
PHP
<?php
|
|
|
|
phpb_requires_authenticated();
|
|
$entriesRepository = new \Plugi\Extensions\Form\EntriesRepository();
|
|
|
|
if(
|
|
isset($_GET['id'])
|
|
) {
|
|
$entriesRepository->destroy($_GET['id']);
|
|
}
|
|
phpb_redirect(phpb_url('website_manager', ['tab' => 'ext--form', 'action' => 'listEntries', 'id' => $_GET['formId']]));
|