modules/commons/commons_groups/commons_groups.module 1 location
|
@@ 1119-1122 (lines=4) @@
|
| 1116 |
|
// Group type doesn't match. |
| 1117 |
|
return; |
| 1118 |
|
} |
| 1119 |
|
if (!empty($field_info['settings']['handler_settings']['target_bundles']) && !in_array($bundle, $field_info['settings']['handler_settings']['target_bundles'])) { |
| 1120 |
|
// Bundles don't match. |
| 1121 |
|
return; |
| 1122 |
|
} |
| 1123 |
|
|
| 1124 |
|
if (!og_check_field_cardinality('user', $account, $settings['field_name'])) { |
| 1125 |
|
$element[0] = array('#markup' => format_plural($field_info['cardinality'], 'You are already registered to another group', 'You are already registered to @count groups')); |
modules/commons/commons_trusted_contacts/commons_trusted_contacts.module 1 location
|
@@ 393-396 (lines=4) @@
|
| 390 |
|
// Group type doesn't match. |
| 391 |
|
return; |
| 392 |
|
} |
| 393 |
|
if (!empty($field_info['settings']['handler_settings']['target_bundles']) && !in_array($bundle, $field_info['settings']['handler_settings']['target_bundles'])) { |
| 394 |
|
// Bundles don't match. |
| 395 |
|
return; |
| 396 |
|
} |
| 397 |
|
|
| 398 |
|
if (!og_check_field_cardinality('user', $account, $settings['field_name'])) { |
| 399 |
|
$element[0] = array('#markup' => format_plural($field_info['cardinality'], 'You are already registered to another group', 'You are already registered to @count groups')); |