* @see Civi\API\Subscriber\DynamicFKAuthorization
*/
function civicrm_api3_attachment_create($params) {
-
if (empty($params['id'])) {
- // When creating we need either entity_table or field_name
+ // When creating we need either entity_table or field_name.
civicrm_api3_verify_one_mandatory($params, NULL, array('entity_table', 'field_name'));
}