You are here

function textimage_uninstall in Textimage 6.2

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. 5 textimage.install \textimage_uninstall()
  5. 7.3 textimage.install \textimage_uninstall()
  6. 7.2 textimage.install \textimage_uninstall()

Implementation of hook_uninstall().

File

./textimage.install, line 81

Code

function textimage_uninstall() {
  include_once drupal_get_path('module', 'textimage') . '/textimage_admin.inc';
  drupal_uninstall_schema('textimage');
  $path = realpath(file_directory_path() . '/textimage');
  if ($path != FALSE) {
    _textimage_recursive_delete($path);
  }
  db_query("DELETE from {variable} WHERE name LIKE '%%textimage_%%'");
}