* @param $props
*/
private function formatReferenceFieldAttributes(&$props) {
+ CRM_Utils_Hook::alterEntityRefParams($props);
$props['data-select-params'] = json_encode($props['select']);
$props['data-api-params'] = $props['api'] ? json_encode($props['api']) : NULL;
$props['data-api-entity'] = $props['entity'];
return self::singleton()->invoke(array('message'), $message, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, 'civicrm_inboundSMS');
}
+ /**
+ * This hook is called to modify api params of EntityRef form field
+ *
+ * @param array $params
+ *
+ * @return mixed
+ */
+ public static function alterEntityRefParams(&$params) {
+ return self::singleton()->invoke(array('params'), $params, self::$_nullObject,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
+ 'civicrm_alterEntityRefParams'
+ );
+ }
+
}