You are here

function party_simplenews_party_get_properties in Party 8.2

Get email related properties

1 string reference to 'party_simplenews_party_get_properties'
party_simplenews_entity_property_info_alter in modules/party_simplenews/party_simplenews.module
Implements hook_entity_property_info_alter()

File

modules/party_simplenews/party_simplenews.module, line 567
Main module file for Party Simplenews integration

Code

function party_simplenews_party_get_properties($party, array $options, $name, $entity_type) {
  switch ($name) {
    case 'primary_email':
      return reset(party_get_all_emails($party));
  }
}