Skip to content
Snippets Groups Projects
Commit 87a2386c authored by Eileen's avatar Eileen
Browse files

Add Batch metadata

parent c669136b
Branches
No related tags found
No related merge requests found
......@@ -48,6 +48,20 @@ function civicrm_api3_batch_create($params) {
return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
/**
* Adjust Metadata for Create action
*
* The metadata is used for setting defaults, documentation & validation
* @param array $params array or parameters determined by getfields
*/
function _civicrm_api3_batch_create_spec(&$params) {
$params['entity_table']['api.default'] = "civicrm_batch";
$params['modified_date']['api.default'] = "now";
$params['status_id']['api.required'] = 1;
$params['title']['api.required'] = 1;
$params['status_id']['api.required'] = 1;
}
/**
* Get a Batch
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment