Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if ($result['is_error'] == 0){
  2. foreach($params as $field => $value){
  3. if (substr($field, 4) == 'api.' && $value ==1){
  4. $subAPI = explode('.',$field);
  5. $action = empty($subAPI[2])?$action:$subAPI[2];
  6. $subParams[strtolower($entity) . "_id"] = $result['id'];
  7. $subParams['version'] = $version;
  8. $result['values'][$result['id']]['entities'][$subentity] = civicrm_api($subAPI[1],$action,$subParams);
  9.  
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement