You are here

function registration_uninstall in Entity Registration 8

Same name and namespace in other branches
  1. 8.2 registration.install \registration_uninstall()
  2. 7.2 registration.install \registration_uninstall()
  3. 7 registration.install \registration_uninstall()

Implements hook_uninstall().

File

./registration.install, line 424
Schema and installation hooks for registration module.

Code

function registration_uninstall() {

  // Remove default states.
  $default_states = array(
    'complete',
    'complete',
    'canceled',
  );
  db_delete('registration_state')
    ->condition('name', $default_states, 'IN')
    ->execute();
}