function textimage_uninstall in Textimage 5.2
Same name and namespace in other branches
- 8.4 textimage.install \textimage_uninstall()
- 8.3 textimage.install \textimage_uninstall()
- 5 textimage.install \textimage_uninstall()
- 6.2 textimage.install \textimage_uninstall()
- 7.3 textimage.install \textimage_uninstall()
- 7.2 textimage.install \textimage_uninstall()
Implementation of hook_uninstall().
File
- ./
textimage.install, line 89
Code
function textimage_uninstall() {
include_once drupal_get_path('module', 'textimage') . '/textimage_admin.inc';
db_query('DROP TABLE {textimage_preset}');
db_query('DROP TABLE {textimage_image}');
if ($GLOBALS['db_type'] == 'pgsql') {
db_query('DROP SEQUENCE {textimage_preset_pid_seq};');
}
$path = realpath(file_directory_path() . '/textimage');
if ($path != FALSE) {
_textimage_recursive_delete($path);
}
db_query("DELETE from {variable} WHERE name LIKE '%%textimage_%%'");
}