disclaimer/_uninstall.php

82 lines
1.4 KiB
PHP
Raw Normal View History

2015-04-22 15:25:24 +00:00
<?php
2022-12-21 00:40:42 +00:00
/**
* @brief disclaimer, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis, Pierre Van Glabeke
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2015-04-22 15:25:24 +00:00
if (!defined('DC_CONTEXT_ADMIN')) {
2022-12-21 00:40:42 +00:00
return null;
2015-04-22 15:25:24 +00:00
}
$this->addUserAction(
2022-12-21 00:40:42 +00:00
/* type */
'settings',
/* action */
'delete_all',
/* ns */
basename(__DIR__),
/* desc */
__('delete all settings')
2015-04-22 15:25:24 +00:00
);
$this->addUserAction(
2022-12-21 00:40:42 +00:00
/* type */
'plugins',
/* action */
'delete',
/* ns */
basename(__DIR__),
/* desc */
__('delete plugin files')
2015-04-22 15:25:24 +00:00
);
$this->addUserAction(
2022-12-21 00:40:42 +00:00
/* type */
'versions',
/* action */
'delete',
/* ns */
basename(__DIR__),
/* desc */
__('delete the version number')
2015-04-22 15:25:24 +00:00
);
$this->addDirectAction(
2022-12-21 00:40:42 +00:00
/* type */
'settings',
/* action */
'delete_all',
/* ns */
basename(__DIR__),
/* desc */
sprintf(__('delete all %s settings'), basename(__DIR__))
2015-04-22 15:25:24 +00:00
);
$this->addDirectAction(
2022-12-21 00:40:42 +00:00
/* type */
'plugins',
/* action */
'delete',
/* ns */
basename(__DIR__),
/* desc */
sprintf(__('delete %s plugin files'), basename(__DIR__))
2015-04-22 15:25:24 +00:00
);
$this->addDirectAction(
2022-12-21 00:40:42 +00:00
/* type */
'versions',
/* action */
'delete',
/* ns */
basename(__DIR__),
/* desc */
sprintf(__('delete %s version number'), basename(__DIR__))
);