Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions CHANGELOG.md

This file was deleted.

7 changes: 6 additions & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,8 @@ function plugin_example_uninstall()
global $DB;

$config = new Config();
$config->deleteConfigurationValues('plugin:Example', ['configuration' => false]);
$my_config = array_keys(Config::getConfigurationValues('plugin:Example'));
$config->deleteConfigurationValues('plugin:Example', $my_config);

ProfileRight::deleteProfileRights([Example::$rightname]);

Expand Down Expand Up @@ -655,6 +656,10 @@ function plugin_example_uninstall()
$query = 'DROP TABLE `glpi_plugin_example_items_devicecameras`;';
$DB->doQuery($query);
}
if ($DB->tableExists('glpi_plugin_example_examples')) {
$query = 'DROP TABLE `glpi_plugin_example_examples`;';
$DB->doQuery($query);
}

return true;
}
Expand Down