fixed Contact ref and entity ref
This commit is contained in:
@ -134,6 +134,17 @@ function constituentsonly_civicrm_queryObjects(&$queryObjects, $type) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_civicrm_apiWrappers().
|
||||
*
|
||||
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_apiWrappers
|
||||
*/
|
||||
function constituentsonly_civicrm_apiWrappers(&$wrappers, $apiRequest) {
|
||||
if ($apiRequest['entity'] == 'Contact' && strtolower($apiRequest['action']) == 'getlist') {
|
||||
$wrappers[] = new CRM_ConstituentsOnly_BAO_APIWrapper();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_civicrm_contactListQuery().
|
||||
*
|
||||
|
Reference in New Issue
Block a user