function _redhen_dedupe_field_is_multivalue in RedHen CRM 7
Determine if a property should be merged via checkboxes instead of radios.
1 call to _redhen_dedupe_field_is_multivalue()
- redhen_dedupe_merge_form in modules/
redhen_dedupe/ includes/ redhen_dedupe.form.inc - Form to select the master contact.
File
- modules/
redhen_dedupe/ includes/ redhen_dedupe.form.inc, line 352 - Forms for creating, editing, and deleting contacts.
Code
function _redhen_dedupe_field_is_multivalue($name, $field) {
$field_info = field_info_field($name);
if ($field_info['cardinality'] != 1) {
return $field_info['cardinality'];
}
else {
return FALSE;
}
}