function registration_uninstall in Entity Registration 7
Same name and namespace in other branches
- 8.2 registration.install \registration_uninstall()
- 8 registration.install \registration_uninstall()
- 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();
}