You are here

function civicrm_entity_user_exists_or_creatable in CiviCRM Entity 7

Same name and namespace in other branches
  1. 7.2 civicrm_entity.module \civicrm_entity_user_exists_or_creatable()

Condition Drupal User Account can be created or exists for contact.

Ccreates contact if appropriate.

Parameters

array $contact: contact array

Return value

mixed Drupal user object if success, FALSE on fail.

File

./civicrm_entity.module, line 647
Implement CiviCRM entities as a Drupal Entity.

Code

function civicrm_entity_user_exists_or_creatable($contact) {
  return civicrm_entity_action_load_create_user($contact);
}