id]); return civicrm_api3_create_success($ufGroupArray, $params); } /** * Returns array of uf groups (profiles) matching a set of one or more group properties * * @param array $params (reference) Array of one or more valid * property_name=>value pairs. If $params is set * as null, all surveys will be returned * * @return array Array of matching profiles * {@getfields UFGroup_get} * @example UFGroupGet.php * @access public */ function civicrm_api3_uf_group_get($params) { return _civicrm_api3_basic_get('CRM_Core_BAO_UFGroup', $params); } /** * Delete uf group * * @param $groupId int Valid uf_group id that to be deleted * * @return true on successful delete or return error * @todo doesnt rtn success or error properly * @access public * {@getfields UFGroup_delete} * @example UFGroupDelete.php */ function civicrm_api3_uf_group_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); }