function crm_core_user_sync_weight_cmp in CRM Core 8.2
Same name and namespace in other branches
- 7 modules/crm_core_user_sync/crm_core_user_sync.module \crm_core_user_sync_weight_cmp()
Weight comparison function
4 string references to 'crm_core_user_sync_weight_cmp'
- crm_core_user_sync_admin_edit_rule_form_submit in modules/
crm_core_user_sync/ crm_core_user_sync.admin.inc - Submit handler for add new rule form.
- crm_core_user_sync_admin_form in modules/
crm_core_user_sync/ crm_core_user_sync.admin.inc - Admin form.
- crm_core_user_sync_admin_form_submit in modules/
crm_core_user_sync/ crm_core_user_sync.admin.inc - Submit callback. Handles synchronization changes.
- crm_core_user_sync_get_contact_type_for_account in modules/
crm_core_user_sync/ crm_core_user_sync.module - Returns corresponding contact type for user account to synchronize with.
File
- modules/
crm_core_user_sync/ crm_core_user_sync.module, line 519
Code
function crm_core_user_sync_weight_cmp($a, $b) {
if ($a['weight'] == $b['weight']) {
return 0;
}
return $a['weight'] < $b['weight'] ? -1 : 1;
}