Skip to content
Snippets Groups Projects
Commit 317d5384 authored by Eugene Ilyin's avatar Eugene Ilyin
Browse files

Issue #2669268 by Arkener: Remove configuration on uninstall

parent 41c9b8b8
Branches
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@
*/
function jreject_configure_system() {
// @todo use i18n_string.
$conf = variable_get('jreject_options_alpha', array());
$form = array();
$form['jreject_enable'] = array(
'#type' => 'checkbox',
......
......@@ -32,12 +32,11 @@ function jreject_install() {
* Implements hook_uninstall().
*/
function jreject_uninstall() {
// @todo add algorithm to remove all variables by mask jreject_%
variable_del('jreject_browser_config');
variable_del('jreject_options_alpha');
variable_del('jreject_options_beta');
variable_del('jreject_browser_alternatives');
variable_del('jreject_enable');
$variables = jreject_default_variables();
$variables[] = 'jreject_browser_alternatives';
foreach ($variables as $variable) {
variable_delete($variable);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment