Closed Jimmi08 closed 1 year ago
This is a working solution
if(strpos($name, 'plugin_') === 0)
{
$attributes['readParms']['deleteClass'] = e_UC_NOBODY;
$tmp_a = array();
$tmp_a = explode('_', $name);
if(count($tmp_a)==3) {
$plugin = $tmp_a[1];
}
else {
$tmp = array_slice($tmp_a, 1, -1);
$plugin = implode("_", $tmp);
}
if (e107::isInstalled($plugin) === FALSE)
{
$attributes['readParms']['deleteClass'] = e_UC_MAINADMIN;
}
}
It is possible via the batch option, it is enough.
Motivation
If the plugin is uninstalled without deleting EUF, there is no option to delete those fields later.
Plugin uninstallation deletes all EUF fields, sometimes this is not needed.
You can't delete only one field now.
Proposed Solution
Allow this for the main admin only.