function taxonomy_uninstall

Implements hook_uninstall().

File

modules/taxonomy/taxonomy.install, line 11

Code

function taxonomy_uninstall() {
    // Remove variables.
    variable_del('taxonomy_override_selector');
    variable_del('taxonomy_terms_per_page_admin');
    // Remove taxonomy_term bundles.
    $vocabularies = db_query("SELECT machine_name FROM {taxonomy_vocabulary}")->fetchCol();
    foreach ($vocabularies as $vocabulary) {
        field_attach_delete_bundle('taxonomy_term', $vocabulary);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.