You are here

function chosen_update_8002 in Chosen 8.2

Same name and namespace in other branches
  1. 3.0.x chosen.install \chosen_update_8002()

Set default value for chosen for admin pages and/or front end pages.

File

./chosen.install, line 66
Installation and uninstallation functions.

Code

function chosen_update_8002() {
  $config = \Drupal::configFactory()
    ->getEditable('chosen.settings');
  $config
    ->set('chosen_include', CHOSEN_INCLUDE_EVERYWHERE);
  $config
    ->save();
}