8 function civicrm_api3_option_group_get($params) {
9 return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
13 * create/update survey
15 * This API is used to create new survey or update any of the existing
16 * In case of updating existing survey, id of that particular survey must
17 * be in $params array.
19 * @param array $params
20 * (reference) Associative array of property.
21 * name/value pairs to insert in new 'survey'
27 function civicrm_api3_option_group_create($params) {
28 return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
32 * Adjust Metadata for Create action
34 * The metadata is used for setting defaults, documentation & validation
35 * @param array $params
36 * Array or parameters determined by getfields.
38 function _civicrm_api3_option_group_create_spec(&$params) {
39 $params['name']['api.unique'] = 1;
43 * delete an existing Option Group
45 * This method is used to delete any existing Option Group. id of the group
46 * to be deleted is required field in $params array
48 * @param array $params
49 * Array containing id of the group.
55 * {@getfields OptionGroup_delete}
57 function civicrm_api3_option_group_delete($params) {
58 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__
), $params);