You are here

function photos_access_uninstall in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 photos_access/photos_access.install \photos_access_uninstall()
  2. 8.4 photos_access/photos_access.install \photos_access_uninstall()
  3. 7.3 photos_access/photos_access.install \photos_access_uninstall()

Implements hook_uninstall().

File

photos_access/photos_access.install, line 81
Install, update, and uninstall functions for the Photos Access module.

Code

function photos_access_uninstall() {

  // Update photos module settings.
  if (\Drupal::moduleHandler()
    ->moduleExists('photos')) {
    \Drupal::configFactory()
      ->getEditable('photos.settings')
      ->set('photos_access_photos', 0)
      ->save();
  }
}