function _crm_core_match_engine_weight_cmp in CRM Core 7
Same name and namespace in other branches
- 8.3 modules/crm_core_match/crm_core_match.module \_crm_core_match_engine_weight_cmp()
- 8 modules/crm_core_match/crm_core_match.module \_crm_core_match_engine_weight_cmp()
- 8.2 modules/crm_core_match/crm_core_match.module \_crm_core_match_engine_weight_cmp()
Helper function for engines weight comparison.
1 string reference to '_crm_core_match_engine_weight_cmp'
- crm_core_match_get_engines in modules/
crm_core_match/ crm_core_match.module - Returns a list of all matching engines registered with CRM Core Match.
File
- modules/
crm_core_match/ crm_core_match.module, line 184 - Manages matching engines for identifying duplicate contacts in CRM Core. Allows CRM Core to install, enable and disable matching engines.
Code
function _crm_core_match_engine_weight_cmp($a, $b) {
if ($a
->getWeight() == $b
->getWeight()) {
return 0;
}
return $a
->getWeight() < $b
->getWeight() ? -1 : 1;
}