You are here

function video_uninstall in Video 7.2

Same name and namespace in other branches
  1. 5 video.install \video_uninstall()
  2. 6.5 video.install \video_uninstall()
  3. 6 video.install \video_uninstall()
  4. 6.2 video.install \video_uninstall()
  5. 6.3 video.install \video_uninstall()
  6. 6.4 video.install \video_uninstall()
  7. 7 video.install \video_uninstall()

Implements hook_uninstall().

File

./video.install, line 244
Provides installation schema for video.module @author Heshan Wanigasooriya <heshan@heidisoft.com>

Code

function video_uninstall() {
  drupal_uninstall_schema('video');

  // remove variables
  db_query("DELETE FROM {variable} WHERE name LIKE 'video_%'");

  // Remove the video directory and generated images.
  file_unmanaged_delete_recursive(file_default_scheme() . '://videos');
}