You are here

protected function RedhenContact::defaultLabel in RedHen CRM 7

Specifies the default label, which is picked up by label() by default.

Overrides Entity::defaultLabel

File

modules/redhen_contact/lib/redhen_contact.entity.inc, line 92
Redhen Contact entity classses.

Class

RedhenContact
The class used for contact entities.

Code

protected function defaultLabel() {
  $wrapper = entity_metadata_wrapper('redhen_contact', $this);
  return $wrapper->full_name
    ->value();
}