+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
);
if (empty($data)) {
- throw new API_Exception('Enable to format profile parameters.');
+ throw new API_Exception('Unable to format profile parameters.');
}
return civicrm_api3_create_success($data);
}
+/**
+ * Adjust Metadata for Apply action.
+ *
+ * The metadata is used for setting defaults, documentation & validation.
+ *
+ * @param array $params
+ * Array of parameters determined by getfields.
+ */
+function _civicrm_api3_profile_apply_spec(&$params) {
+ $params['profile_id']['api.required'] = 1;
+ $params['profile_id']['title'] = 'Profile ID';
+}
/**
* Get pseudo profile 'billing'.
'total_amount' => 'contribution',
'receive_date' => 'contribution',
'payment_instrument' => 'contribution',
- 'check_number' => 'contribution',
+ 'contribution_check_number' => 'contribution',
'contribution_status_id' => 'contribution',
'soft_credit' => 'contribution',
'soft_credit_type' => 'contribution_soft',