2021-09-08 22:53:13 +00:00
|
|
|
<?php
|
2021-09-08 23:02:10 +00:00
|
|
|
/**
|
2021-09-08 23:05:05 +00:00
|
|
|
* @brief noodles, a plugin for Dotclear 2
|
2021-09-08 23:02:10 +00:00
|
|
|
*
|
|
|
|
* @package Dotclear
|
2021-09-08 23:05:05 +00:00
|
|
|
* @subpackage Plugin
|
2021-09-08 23:02:10 +00:00
|
|
|
*
|
2021-09-08 23:05:05 +00:00
|
|
|
* @author Jean-Christian Denis and contributors
|
2021-09-08 23:02:10 +00:00
|
|
|
*
|
|
|
|
* @copyright Jean-Christian Denis
|
|
|
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
2021-09-09 07:12:31 +00:00
|
|
|
if (!defined('DC_CONTEXT_ADMIN')) {
|
|
|
|
return null;
|
|
|
|
}
|
2021-09-08 22:53:13 +00:00
|
|
|
|
|
|
|
$this->addUserAction(
|
2021-11-01 09:28:22 +00:00
|
|
|
/* type */
|
|
|
|
'settings',
|
|
|
|
/* action */
|
|
|
|
'delete_all',
|
|
|
|
/* ns */
|
|
|
|
'noodles',
|
|
|
|
/* description */
|
|
|
|
__('delete all settings')
|
2021-09-08 22:53:13 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
$this->addUserAction(
|
2021-11-01 09:28:22 +00:00
|
|
|
/* type */
|
|
|
|
'plugins',
|
|
|
|
/* action */
|
|
|
|
'delete',
|
|
|
|
/* ns */
|
|
|
|
'noodles',
|
|
|
|
/* description */
|
|
|
|
__('delete plugin files')
|
2021-09-08 22:53:13 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
$this->addDirectAction(
|
2021-11-01 09:28:22 +00:00
|
|
|
/* type */
|
|
|
|
'settings',
|
|
|
|
/* action */
|
|
|
|
'delete_all',
|
|
|
|
/* ns */
|
|
|
|
'noodles',
|
|
|
|
/* description */
|
|
|
|
sprintf(__('delete all %s settings'), 'noodles')
|
2021-09-08 22:53:13 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
$this->addDirectAction(
|
2021-11-01 09:28:22 +00:00
|
|
|
/* type */
|
|
|
|
'plugins',
|
|
|
|
/* action */
|
|
|
|
'delete',
|
|
|
|
/* ns */
|
|
|
|
'noodles',
|
|
|
|
/* description */
|
|
|
|
sprintf(__('delete %s plugin files'), 'noodles')
|
2021-09-08 23:02:10 +00:00
|
|
|
);
|