3 function civicrm_api3_option_group_get($params) {
4 return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
10 * This API is used to create new survey or update any of the existing
11 * In case of updating existing survey, id of that particular survey must
12 * be in $params array.
14 * @param array $params (reference) Associative array of property
15 * name/value pairs to insert in new 'survey'
17 * @return array survey array
21 function civicrm_api3_option_group_create($params) {
22 return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
26 * Adjust Metadata for Create action
28 * The metadata is used for setting defaults, documentation & validation
29 * @param array $params array or parameters determined by getfields
31 function _civicrm_api3_option_group_create_spec(&$params) {
32 $params['name']['api.unique'] = 1;
36 * delete an existing Option Group
38 * This method is used to delete any existing Option Group. id of the group
39 * to be deleted is required field in $params array
41 * @param array $params (reference) array containing id of the group
44 * @return array (reference) returns flag true if successfull, error
46 * {@getfields OptionGroup_delete}
49 function civicrm_api3_option_group_delete($params) {
50 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__
), $params);