Skip to content

Commit

Permalink
Merge pull request #2 from laryn/patch-1
Browse files Browse the repository at this point in the history
Clean up in install file.
  • Loading branch information
herbdool authored Jan 20, 2023
2 parents f61b021 + b2d98ea commit f9d5263
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions maillog.install
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ function maillog_enable() {
// clear after the default views are loaded in order for the menu item to
// become active.
global $language;
cache_clear_all('ctools_plugin_files:ctools:export_ui', 'cache');
cache_clear_all('ctools_plugin_type_info', 'cache');
cache_clear_all('views:plugin_data:' . $language->langcode, 'cache');
state_set('menu_rebuild_needed', TRUE);
}
Expand Down Expand Up @@ -141,7 +139,7 @@ function maillog_schema() {
}

/**
* Update webforms from Drupal to Backdrop.
* Update variables from Drupal to config in Backdrop.
*/
function maillog_update_1000() {
$config = config('maillog.settings');
Expand All @@ -155,8 +153,8 @@ function maillog_update_1000() {
$config->save();

// Delete variables.
update_variable_del('maillog_');
update_variable_del('maillog_');
update_variable_del('maillog_');
update_variable_del('maillog_');
update_variable_del('maillog_send');
update_variable_del('maillog_log');
update_variable_del('maillog_devel');
update_variable_del('maillog_engine');
}

0 comments on commit f9d5263

Please sign in to comment.