You are here

function chosen_update_8002 in Chosen 3.0.x

Same name and namespace in other branches
  1. 8.2 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();
}