function uc_catalog_uninstall in Ubercart 6.2
Same name and namespace in other branches
- 8.4 uc_catalog/uc_catalog.install \uc_catalog_uninstall()
- 5 uc_catalog/uc_catalog.install \uc_catalog_uninstall()
- 7.3 uc_catalog/uc_catalog.install \uc_catalog_uninstall()
Implements hook_uninstall().
File
- uc_catalog/
uc_catalog.install, line 92 - Install hooks for uc_catalog.module.
Code
function uc_catalog_uninstall() {
drupal_uninstall_schema('uc_catalog');
if ($vid = variable_get('uc_catalog_vid', 0)) {
drupal_set_message(t('The Ubercart Catalog vocabulary has not been deleted. If you need to delete it, <a href="!url">please do so manually</a>.', array(
'!url' => url('admin/content/taxonomy/edit/vocabulary/' . $vid),
)), 'notice');
}
db_query("DELETE FROM {variable} WHERE name LIKE 'uc_catalog_%%'");
}