You are here

function photos_update_8401 in Album Photos 8.4

Remove old variables that are no longer in use from photos.settings.

File

./photos.install, line 204
Install, update, and uninstall functions for the Photos module.

Code

function photos_update_8401(&$sandbox) {
  $config = \Drupal::service('config.factory')
    ->getEditable('photos.settings');
  $config
    ->clear('photos_search_max_id_ever')
    ->save();
  $config
    ->clear('photos_search_reindex_old_photos')
    ->save();
  $config
    ->clear('photos_search_max_id_reindex')
    ->save();
  $config
    ->clear('photos_print_sizes')
    ->save();
  $config
    ->clear('photos_vote')
    ->save();
}