<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
// find any supplemental information
$hypApiRequest = array('entity' => $apiRequest['entity'], 'action' => $action, 'version' => $apiRequest['version']);
+ if ($action == 'getsingle') {
+ $hypApiRequest['action'] = 'get';
+ }
try {
list ($apiProvider, $hypApiRequest) = \Civi::service('civi_api_kernel')->resolve($hypApiRequest);
if (isset($hypApiRequest['function'])) {
}
}
}
+
+ $entityName = _civicrm_api_get_entity_name_from_camel($apiRequest['entity']);
+ $getOptionsSpecFunction = '_civicrm_api3_' . $entityName . '_getoptions_spec';
+
+ if (function_exists($getOptionsSpecFunction)) {
+ $getOptionsSpecFunction($params);
+ }
}
/**