Dotclear

source: plugins/pacKman/_uninstall.php @ 3240

Revision 3240, 1.4 KB checked in by JcDenis, 10 years ago (diff)
  • Switch to Dotclear 2.6
Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3#
4# This file is part of pacKman, a plugin for Dotclear 2.
5#
6# Copyright (c) 2009-2013 Jean-Christian Denis and contributors
7# contact@jcdenis.fr
8#
9# Licensed under the GPL version 2.0 license.
10# A copy of this license is available in LICENSE file or at
11# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
12#
13# -- END LICENSE BLOCK ------------------------------------
14
15if (!defined('DC_CONTEXT_ADMIN')) {
16
17     return null;
18}
19
20$mod_id = 'pacKman';
21
22$this->addUserAction(
23     /* type */     'settings',
24     /* action */   'delete_all',
25     /* ns */       $mod_id,
26     /* desc */     __('delete all settings')
27);
28
29$this->addUserAction(
30     /* type */     'plugins',
31     /* action */   'delete',
32     /* ns */       $mod_id,
33     /* desc */     __('delete plugin files')
34);
35
36$this->addUserAction(
37     /* type */     'versions',
38     /* action */   'delete',
39     /* ns */       $mod_id,
40     /* desc */     __('delete the version number')
41);
42
43
44$this->addDirectAction(
45     /* type */     'settings',
46     /* action */   'delete_all',
47     /* ns */       $mod_id,
48     /* desc */     sprintf(__('delete all %s settings'), $mod_id)
49);
50
51$this->addDirectAction(
52     /* type */     'plugins',
53     /* action */   'delete',
54     /* ns */       $mod_id,
55     /* desc */     sprintf(__('delete %s plugin files'), $mod_id)
56);
57
58$this->addDirectAction(
59     /* type */     'versions',
60     /* action */   'delete',
61     /* ns */       $mod_id,
62     /* desc */     sprintf(__('delete %s version number'), $mod_id)
63);
Note: See TracBrowser for help on using the repository browser.

Sites map