),
'deprecated' => array(
'getquick' => 'The "getquick" action is deprecated in favor of "getlist".',
+ 'setvalue' => 'The "setvalue" action is deprecated. Use "create" with an id instead.',
'update' => 'The "update" action is deprecated. Use "create" with an id instead.',
),
);
}
// Report deprecations.
$deprecated = _civicrm_api3_deprecation_check($entity, $result);
+ // The "setvalue" action is deprecated but still in use, so report it only on "getactions".
+ if (!is_string($deprecated) && $action == 'getactions') {
+ $deprecated = ((array) $deprecated) + array('setvalue' => 'The "setvalue" action is deprecated. Use "create" with an id instead.');
+ }
// Always report "update" action as deprecated.
if (!is_string($deprecated) && ($action == 'getactions' || $action == 'update')) {
$deprecated = ((array) $deprecated) + array('update' => 'The "update" action is deprecated. Use "create" with an id instead.');