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