You are here

function registration_uninstall in Entity Registration 7

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

Implements hook_uninstall().

File

./registration.install, line 451
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();
}