You are here

function rac_update_8100 in Role Access Control 8

Same name and namespace in other branches
  1. 8.2 rac.install \rac_update_8100()

Add default config for new update_unpublished setting.

File

./rac.install, line 26
Implements hook_install()

Code

function rac_update_8100($sandbox) {
  \Drupal::service("config.factory")
    ->getEditable("rac.settings")
    ->set("update_unpublished", TRUE)
    ->save();
}