You are here

function hook_redhen_contact_name_alter in RedHen CRM 7

Same name and namespace in other branches
  1. 8 modules/redhen_contact/redhen_contact.api.php \hook_redhen_contact_name_alter()

Alter the display name for a contact.

Parameters

string $name:

RedhenContact $contact:

Return value

string

1 invocation of hook_redhen_contact_name_alter()
redhen_contact_property_full_name_get in modules/redhen_contact/redhen_contact.module
Callback to get $contact->full_name.

File

./redhen.api.php, line 69
Hooks provided by the RedHen contact module.

Code

function hook_redhen_contact_name_alter(&$name, RedhenContact $contact) {
  return $contact->last_name . ', ' . $contact->last_name;
}