You are here

function salesforce_push_uninstall in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_push/salesforce_push.install \salesforce_push_uninstall()
  2. 8.3 modules/salesforce_push/salesforce_push.install \salesforce_push_uninstall()
  3. 7.3 modules/salesforce_push/salesforce_push.install \salesforce_push_uninstall()

Implements hook_uninstall().

File

modules/salesforce_push/salesforce_push.install, line 21
Salesforce push install.

Code

function salesforce_push_uninstall() {
  $delete = [
    'salesforce.push_queue_processor',
    'salesforce.push_queue_max_fails',
    'salesforce.mapping_push_info',
  ];
  \Drupal::state()
    ->deleteMultiple($delete);
  \Drupal::service('queue.salesforce_push')
    ->deleteTable();
}