function cleantalk_uninstall in Anti Spam by CleanTalk 8.3
Same name and namespace in other branches
- 8.4 cleantalk.install \cleantalk_uninstall()
- 8 cleantalk.install \cleantalk_uninstall()
- 7.5 cleantalk.install \cleantalk_uninstall()
- 7 cleantalk.install \cleantalk_uninstall()
- 7.2 cleantalk.install \cleantalk_uninstall()
- 7.4 cleantalk.install \cleantalk_uninstall()
- 9.1.x cleantalk.install \cleantalk_uninstall()
Implements hook_uninstall().
File
- ./
cleantalk.install, line 139 - Install and uninstall functions, schema definition for the CleanTalk module.
Code
function cleantalk_uninstall() {
\Drupal::state()
->delete('cleantalk_sfw_last_send_log');
\Drupal::state()
->delete('cleantalk_sfw_last_check');
\Drupal::state()
->delete('cleantalk_work_url');
\Drupal::state()
->delete('cleantalk_server_ttl');
\Drupal::state()
->delete('cleantalk_server_changed');
\Drupal::state()
->delete('cleantalk_api_show_notice');
\Drupal::state()
->delete('cleantalk_api_renew');
\Drupal::state()
->delete('cleantalk_api_trial');
\Drupal::state()
->delete('cleantalk_api_user_token');
\Drupal::state()
->delete('cleantalk_api_spam_count');
\Drupal::state()
->delete('cleantalk_api_moderate_ip');
\Drupal::state()
->delete('cleantalk_api_show_review');
\Drupal::state()
->delete('cleantalk_api_service_id');
\Drupal::state()
->delete('cleantalk_api_license_trial');
\Drupal::state()
->delete('cleantalk_api_account_name_ob');
\Drupal::state()
->delete('cleantalk_api_ip_license');
\Drupal::state()
->delete('cleantalk_show_renew_banner');
\Drupal::state()
->delete('cleantalk_remote_calls');
}