<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
return civicrm_api3_create_success(1, $params, 'Activity', 'delete');
}
else {
- throw new API_Exception('Could not delete Activity');
+ throw new API_Exception('Could not delete Activity: ' . (int) $params['id']);
}
}