You are here

function user_revision_uninstall in User Revision 7.2

Same name and namespace in other branches
  1. 8 user_revision.install \user_revision_uninstall()
  2. 7 user_revision.install \user_revision_uninstall()

Implements hook_uninstall().

File

./user_revision.install, line 238
Install, update and uninstall functions for the user_revision module.

Code

function user_revision_uninstall() {
  module_load_include('module', 'user_revision');
  $schema['users'] = array();
  user_revision_schema_alter($schema);
  foreach ($schema['users']['unique keys'] as $name => $spec) {
    db_drop_unique_key('users', $name);
  }
  foreach ($schema['users']['fields'] as $name => $spec) {
    db_drop_field('users', $name);
  }
}