* {@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) {
* @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);
*
* {@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
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']);
}
}