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 (reference) Associative array of property
20 * name/value pairs to insert in new 'survey'
22 * @return array survey array
26 function civicrm_api3_option_group_create($params) {
27 return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
31 * Adjust Metadata for Create action
33 * The metadata is used for setting defaults, documentation & validation
34 * @param array $params array or parameters determined by getfields
36 function _civicrm_api3_option_group_create_spec(&$params) {
37 $params['name']['api.unique'] = 1;
41 * delete an existing Option Group
43 * This method is used to delete any existing Option Group. id of the group
44 * to be deleted is required field in $params array
46 * @param array $params array containing id of the group
49 * @return array API Result Array
51 * {@getfields OptionGroup_delete}
54 function civicrm_api3_option_group_delete($params) {
55 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__
), $params);