Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($result['is_error'] == 0){
- foreach($params as $field => $value){
- if (substr($field, 4) == 'api.' && $value ==1){
- $subAPI = explode('.',$field);
- $action = empty($subAPI[2])?$action:$subAPI[2];
- $subParams[strtolower($entity) . "_id"] = $result['id'];
- $subParams['version'] = $version;
- $result['values'][$result['id']]['entities'][$subentity] = civicrm_api($subAPI[1],$action,$subParams);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement