X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FOptionValue.php;h=f693c9c0e8ef1a5b6e925933fa6ace7bf016279d;hb=87878ac8e6101fc5bed04f356c677b5f9ec54bc7;hp=0a7130b820ceb13d3533dd7b8368a503f987e94c;hpb=c24be2289c776d9ee74980d0db74996804bd0eff;p=civicrm-core.git diff --git a/api/v3/OptionValue.php b/api/v3/OptionValue.php index 0a7130b820..f693c9c0e8 100644 --- a/api/v3/OptionValue.php +++ b/api/v3/OptionValue.php @@ -8,9 +8,9 @@ * {@example OptionValueGet.php 0} * @example OptionValueGet.php * - * @return array details of found Option Values - * {@getfields OptionValue_get} - * @access public + * @return array + * details of found Option Values + * {@getfields OptionValue_get} */ function civicrm_api3_option_value_get($params) { @@ -36,9 +36,9 @@ function civicrm_api3_option_value_get($params) { * @param array $params * * @throws API_Exception - * @return array of newly created option_value property values. - * {@getfields OptionValue_create} - * @access public + * @return array + * Array of newly created option_value property values. + * {@getfields OptionValue_create} */ function civicrm_api3_option_value_create($params) { $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); @@ -77,9 +77,9 @@ function _civicrm_api3_option_value_create_spec(&$params) { * * {@example OptionValueDelete.php 0} * - * @return array Api result - * {@getfields OptionValue_create} - * @access public + * @return array + * Api result + * {@getfields OptionValue_create} */ function civicrm_api3_option_value_delete($params) { // we will get the option group id before deleting so we can flush pseudoconstants @@ -88,7 +88,7 @@ function civicrm_api3_option_value_delete($params) { civicrm_api('option_value', 'getfields', array('version' => 3, 'cache_clear' => 1, 'option_group_id' => $optionGroupID)); return civicrm_api3_create_success(); } - else{ + else { civicrm_api3_create_error('Could not delete OptionValue ' . $params['id']); } }