public function RelationsCiviCrmImportSettings::relationShouldBeCreated in CRM Core 7
Returns TRUE if relation should be created.
1 call to RelationsCiviCrmImportSettings::relationShouldBeCreated()
- RelationsCiviCrmImportSettings::configForm in modules/
crm_core_data_import/ plugins/ settings/ RelationsCiviCrmImportSettings.inc - Configuration form for settings plugin.
File
- modules/
crm_core_data_import/ plugins/ settings/ RelationsCiviCrmImportSettings.inc, line 214
Class
Code
public function relationShouldBeCreated($relation_type, $available_relations, $new_relation_name) {
return !empty($relation_type) && !array_key_exists($relation_type, $available_relations) && !empty($new_relation_name);
}