You are here

function redhen_contact_property_user_get in RedHen CRM 7

Callback to get $contact->user.

1 string reference to 'redhen_contact_property_user_get'
RedhenContactMetadataController::entityPropertyInfo in modules/redhen_contact/lib/redhen_contact.metadata.inc
Overrides entityPropertyInfo().

File

modules/redhen_contact/redhen_contact.module, line 1421
Module file for RedHen contacts.

Code

function redhen_contact_property_user_get(RedhenContact $contact, array $options, $property_name, $entity_type) {
  if (is_numeric($contact->uid)) {
    return user_load($contact->uid);
  }
}