X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGeneric%2FUpdate.php;h=02743a2c11d95b837e120c5487c9e5e057982927;hb=347185d7709adf00659d042b2fa98b93f03f2672;hp=b025b6a9e4a12de47ea6a56567710cb90739fe57;hpb=ed5ef6168bb73bca9e124bceeb5131ff209bffe4;p=civicrm-core.git diff --git a/api/v3/Generic/Update.php b/api/v3/Generic/Update.php index b025b6a9e4..02743a2c11 100644 --- a/api/v3/Generic/Update.php +++ b/api/v3/Generic/Update.php @@ -2,7 +2,7 @@ /* +--------------------------------------------------------------------+ - | CiviCRM version 4.5 | + | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ @@ -35,12 +35,14 @@ * To do this, perform a 'get' action to load the existing values, then merge in the updates * and call 'create' to save the revised entity. * - * @param $apiRequest an array with keys: + * @param array $apiRequest array with keys: * - entity: string * - action: string * - version: string * - function: callback (mixed) * - params: array, varies + * + * @return array|int|mixed */ function civicrm_api3_generic_update($apiRequest) { //$key_id = strtolower ($apiRequest['entity'])."_id"; @@ -70,4 +72,3 @@ function civicrm_api3_generic_update($apiRequest) { $p = array_merge($existing, $apiRequest['params']); return civicrm_api($apiRequest['entity'], 'create', $p); } -