| 1 |
<?php |
| 2 |
if (isset($_GET['id']) && $_GET['id'] != '') { |
| 3 |
$button = new maxButton(); |
| 4 |
$button_id = intval($_GET["id"]); // validation |
| 5 |
|
| 6 |
$button->delete(intval($_GET['id'])); |
| 7 |
|
| 8 |
//maxbuttons_button_delete_permanently($_GET['id']); |
| 9 |
} |
| 10 |
|
| 11 |
?> |
| 12 |
<script type="text/javascript"> |
| 13 |
window.location = "<?php admin_url() ?>admin.php?page=maxbuttons-controller&action=list&status=trash&message=1delete"; |
| 14 |
</script> |
| 15 |
|