Revision 3262,
1.5 KB
checked in by JcDenis, 10 years ago
(diff) |
switch to DC 2.6, clean up code
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # |
---|
4 | # This file is part of dcFilterDuplicate, a plugin for Dotclear 2. |
---|
5 | # |
---|
6 | # Copyright (c) 2009-2013 Jean-Christian Denis and contributors |
---|
7 | # contact@jcdenis.fr http://jcd.lv |
---|
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 | |
---|
15 | if (!defined('DC_CONTEXT_ADMIN')) { |
---|
16 | |
---|
17 | return null; |
---|
18 | } |
---|
19 | |
---|
20 | $mod_id = 'dcFilterDuplicate'; |
---|
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 | $this->addDirectAction( |
---|
44 | /* type */ 'settings', |
---|
45 | /* action */ 'delete_all', |
---|
46 | /* ns */ $mod_id, |
---|
47 | /* desc */ sprintf(__('delete all %s settings'), $mod_id) |
---|
48 | ); |
---|
49 | |
---|
50 | $this->addDirectAction( |
---|
51 | /* type */ 'versions', |
---|
52 | /* action */ 'delete', |
---|
53 | /* ns */ $mod_id, |
---|
54 | /* desc */ sprintf(__('delete %s version number'), $mod_id) |
---|
55 | ); |
---|
56 | |
---|
57 | $this->addDirectAction( |
---|
58 | /* type */ 'plugins', |
---|
59 | /* action */ 'delete', |
---|
60 | /* ns */ $mod_id, |
---|
61 | /* desc */ sprintf(__('delete %s plugin files'), $mod_id) |
---|
62 | ); |
---|
Note: See
TracBrowser
for help on using the repository browser.