You are here

function salesforce_uninstall in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 salesforce.install \salesforce_uninstall()
  2. 7.3 salesforce.install \salesforce_uninstall()
  3. 5.0.x salesforce.install \salesforce_uninstall()

Implements hook_uninstall().

Purge Salesforce module state variables.

File

./salesforce.install, line 19
Salesforce install file.

Code

function salesforce_uninstall() {
  $delete = [
    'salesforce.instance_url',
    'salesforce.access_token',
    'salesforce.refresh_token',
    'salesforce.identity',
    'salesforce.last_requirements_check',
    'salesforce.usage',
    'salesforce.tls_status',
  ];
  \Drupal::state()
    ->deleteMultiple($delete);
}