You are here

function civicrm_entity_user_creatable in CiviCRM Entity 7

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

Condition Drupal User Account can be created for contact (creates contact).

Parameters

array $contact: contact array

Return value

object Drupal user object if success, FALSE on Fail

File

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

Code

function civicrm_entity_user_creatable($contact) {
  return civicrm_entity_action_create_user($contact, TRUE);
}