function uuid_uninstall in Universally Unique IDentifier 7
Same name and namespace in other branches
- 5 uuid.install \uuid_uninstall()
- 6 uuid.install \uuid_uninstall()
Implements hook_uninstall().
File
- ./
uuid.install, line 93 - Install, update and uninstall functions for the uuid module.
Code
function uuid_uninstall() {
foreach (uuid_get_core_entity_info() as $info) {
if (db_field_exists($info['base table'], $info['entity keys']['uuid'])) {
db_drop_field($info['base table'], $info['entity keys']['uuid']);
db_drop_index($info['base table'], $info['entity keys']['uuid']);
}
if (!empty($info['revision table']) && !empty($info['entity keys']['revision uuid'])) {
if (db_field_exists($info['revision table'], $info['entity keys']['revision uuid'])) {
db_drop_field($info['revision table'], $info['entity keys']['revision uuid']);
db_drop_index($info['revision table'], $info['entity keys']['revision uuid']);
}
}
}
}