webform_civirules.install 365 Bytes
Newer Older
jaapjansma's avatar
jaapjansma committed
1 2 3 4 5 6 7 8 9 10
<?php

function webform_civirules_disable() {
  if (_webform_civirules_is_civirules_installed()) {
    try {
      $triggerId = civicrm_api3('CiviRuleTrigger', 'getvalue', array('name' => 'webform_civirules_submission', 'return' => 'id'));
      civicrm_api3('CiviRuleTrigger', 'delete', array('id' => $triggerId));
    } catch (CiviCRM_API3_Exception $ex) {}
  }
}