Documentation

Update.php

Table of Contents

Functions

civicrm_api3_generic_update()  : array<string|int, mixed>|int|mixed
Update function is basically a hack.

Functions

civicrm_api3_generic_update()

Update function is basically a hack.

civicrm_api3_generic_update(array<string|int, mixed> $apiRequest) : array<string|int, mixed>|int|mixed

We want to remove it but must resolve issues in http://issues.civicrm.org/jira/browse/CRM-12144

It is not recommended & if update doesn't work & fix does then update will not be fixed

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.

Parameters
$apiRequest : array<string|int, mixed>

Array with keys:

  • entity: string
  • action: string
  • version: string
  • function: callback (mixed)
  • params: array, varies
Return values
array<string|int, mixed>|int|mixed

        
On this page

Search results