You are here

function relation_uninstall in Relation 7

Implements hook_uninstall().

File

./relation.install, line 280
Installation functions for Relation module.

Code

function relation_uninstall() {

  // Remove fields attached to relation type bundles.
  $types = db_query("SELECT relation_type FROM {relation_type}")
    ->fetchCol();
  foreach ($types as $type) {
    field_attach_delete_bundle('relation', $type);
  }
  field_delete_field('endpoints');
}