You are here

function lightbox2_uninstall in Lightbox2 8

Same name and namespace in other branches
  1. 5.2 lightbox2.install \lightbox2_uninstall()
  2. 5 lightbox2.install \lightbox2_uninstall()
  3. 6 lightbox2.install \lightbox2_uninstall()
  4. 7.2 lightbox2.install \lightbox2_uninstall()
  5. 7 lightbox2.install \lightbox2_uninstall()

Implementation of hook_uninstall().

File

./lightbox2.install, line 19
Installation functions for Lightbox2.

Code

function lightbox2_uninstall() {

  // Delete the variables we created.
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_plus')
    ->save();

  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // variable_del('lightbox2G2_filter');
  // Remove the general settings.
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_lite')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_use_alt_layout')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_force_show_nav')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_loop_items')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_image_count_str')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_page_count_str')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_video_count_str')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_disable_resize')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_disable_zoom')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_enable_login')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_enable_contact')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_enable_video')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_flv_player_path')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_flv_player_flashvars')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_page_init_action')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_page_list')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_disable_these_urls')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_imagefield_group_node_id')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_imagefield_use_node_title')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_view_image_text')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_image_ncck_group_node_id')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_show_caption')
    ->save();

  // Advanced settings.
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_js_location')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_keys_close')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_keys_previous')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_keys_next')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_keys_zoom')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_keys_play_pause')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_top_position')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_border_size')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_box_color')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_font_color')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_overlay_opacity')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_overlay_color')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_disable_close_click')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_resize_sequence')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_resize_speed')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_fadein_speed')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_slidedown_speed')
    ->save();

  // Remove iframe settings.
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_default_frame_width')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_default_frame_height')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_frame_border')
    ->save();

  // Remove slideshow settings.
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_slideshow_interval')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_slideshow_automatic_start')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_slideshow_automatic_exit')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_slideshow_show_play_pause')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_slideshow_pause_on_next_click')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_slideshow_pause_on_previous_click')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_loop_slides')
    ->save();

  // Remove the automatic image handling settings.
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_image_node')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_display_image_size')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_trigger_image_size')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_disable_nested_galleries')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_flickr')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_gallery2_blocks')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_inline')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_image_assist_custom')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_custom_class_handler')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_custom_trigger_classes')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_node_link_text')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_download_link_text')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_node_link_target')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_show_caption')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_image_group')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_disable_nested_acidfree_galleries')
    ->save();
  \Drupal::config('lightbox2.settings')
    ->clear('lightbox2_acidfree_video')
    ->save();
}