function photoswipe_uninstall in PhotoSwipe 7
Same name and namespace in other branches
- 6 photoswipe.install \photoswipe_uninstall()
- 7.2 photoswipe.install \photoswipe_uninstall()
Implements hook_uninstall().
File
- ./photoswipe.install, line 22 
- Install, uninstall and update hooks for Photswipe module.
Code
function photoswipe_uninstall() {
  // Remove photoswipe variables.
  db_delete('variable')
    ->condition('name', 'photoswipe_%', 'LIKE')
    ->execute();
  cache_clear_all('variables', 'cache_bootstrap');
}