Commit 98b26050 authored by Kristian Polso's avatar Kristian Polso

Disable Seven admin theme blocks in Pino update hook

parent 41ab9e99
......@@ -64,4 +64,16 @@ function pino_update_8001() {
}
function pino_update_8002() {
// Disable some Seven admin theme blocks that were mistakenly enabled
// Same functionality as in pino_install() function, check there for more information
\Drupal::configFactory()->getEditable('block.block.seven_account_menu')->set('status', FALSE)->save(TRUE);
\Drupal::configFactory()->getEditable('block.block.seven_local_tasks')->set('status', FALSE)->save(TRUE);
\Drupal::configFactory()->getEditable('block.block.seven_main_menu')->set('status', FALSE)->save(TRUE);
\Drupal::configFactory()->getEditable('block.block.seven_branding')->set('status', FALSE)->save(TRUE);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment