You are here

function textimage_uninstall in Textimage 5

Same name and namespace in other branches
  1. 8.4 textimage.install \textimage_uninstall()
  2. 8.3 textimage.install \textimage_uninstall()
  3. 5.2 textimage.install \textimage_uninstall()
  4. 6.2 textimage.install \textimage_uninstall()
  5. 7.3 textimage.install \textimage_uninstall()
  6. 7.2 textimage.install \textimage_uninstall()

File

./textimage.install, line 28

Code

function textimage_uninstall() {
  include_once drupal_get_path('module', 'textimage') . '/textimage.module';
  db_query('DROP TABLE {textimage_preset}');
  $path = realpath(file_directory_path() . '/textimage');
  if ($path != FALSE) {
    _textimage_recursive_delete($path);
  }
  variable_del('textimage_fonts_path');
  variable_del('textimage_images_path');
  variable_del('textimage_captcha_fonts_path');
  variable_del('textimage_captcha_images_path');
  variable_del('textimage_captcha_font_size');
  variable_del('textimage_captcha_char_spacing_max');
  variable_del('textimage_captcha_char_jiggle_amount');
  variable_del('textimage_captcha_char_rotate_amount');
  variable_del('textimage_captcha_char_size_amount');
  variable_del('textimage_captcha_use_only_upper');
  variable_del('textimage_captcha_image_noise');
  variable_del('textimage_captcha_image_lines');
  variable_del('textimage_captcha_image_margin');
}