summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/modules.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/admin/modules.php b/admin/modules.php
index ea2fb6f0..9c64e271 100644
--- a/admin/modules.php
+++ b/admin/modules.php
@@ -42,6 +42,21 @@ switch ($action) {
$body = '';
show_confirmation($title,$body,$url);
break;
+ case 'confirm_remove_localplay_preferences':
+ $type = scrub_in($_REQUEST['type']);
+ $url = conf('web_path') . '/admin/modules.php?action=remove_localplay_preferences&' . $type;
+ $title = _('Are you sure you want to remove this module?');
+ $body = '';
+ show_confirmation($title,$body,$url,1);
+ break;
+ case 'remove_localplay_preferences':
+ $type = scrub_in($_REQUEST['type']);
+ remove_localplay_preferences($type);
+ $url = conf('web_path') . '/admin/modules.php';
+ $title = _('Module Deactivated');
+ $body = '';
+ show_confirmation($title,$body,$url);
+ break;
default:
require_once (conf('prefix') . '/templates/show_modules.inc.php');
break;