function salesforce_uninstall in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 salesforce.install \salesforce_uninstall()
- 8.3 salesforce.install \salesforce_uninstall()
- 7.3 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);
}