<?php
/**
 * CiviRuleAction.Create API specification (optional)
 * This is used for documentation and validation.
 *
 * @param array $spec description of fields supported by this API call
 * @return void
 * @see http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
 */
function _civicrm_api3_civi_rule_condition_delete_spec(&$spec) {
  $spec['id']['api_required'] = 0;
}

/**
 * CiviRuleAction.Create API
 *
 * @param array $params
 * @return array API result descriptor
 * @see civicrm_api3_create_success
 * @see civicrm_api3_create_error
 */
function civicrm_api3_civi_rule_condition_delete($params) {
  return _civicrm_api3_basic_delete('CRM_Civirules_BAO_Condition', $params);
}
