fbd1c79ad52976efc69eb3422efb9ed313699265
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'
28 function civicrm_api3_option_group_create($params) {
29 return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
33 * Adjust Metadata for Create action
35 * The metadata is used for setting defaults, documentation & validation
36 * @param array $params
37 * Array or parameters determined by getfields.
39 function _civicrm_api3_option_group_create_spec(&$params) {
40 $params['name']['api.unique'] = 1;
44 * delete an existing Option Group
46 * This method is used to delete any existing Option Group. id of the group
47 * to be deleted is required field in $params array
49 * @param array $params
50 * Array containing id of the group.
56 * {@getfields OptionGroup_delete}
59 function civicrm_api3_option_group_delete($params) {
60 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__
), $params);