You are here

function video_uninstall in Video 6.5

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

Implementation of hook_uninstall().

File

./video.install, line 211
Provides installation functions for video.module.

Code

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

  // Delete all variables that begin with the namespaced "video_*"
  $result = db_query('SELECT name FROM {variable} WHERE name LIKE "video_%%"');
  while ($var = db_fetch_array($result)) {
    variable_del($var['name']);
  }
  variable_del('vid_filesystem');
  variable_del('vid_convertor');
  variable_del('vid_preset');
}