Hi guys,

I just gave the hook_redhen_contact_name_alter a spin and am getting an error saying that the second argument passed into hook_redhen_contact_name_alter needs to be an instance of a RedhenContact but an array is given.

Looking at the redhen_contact_property_full_name_get function on line 814 of redhen_contact.module, the $context parameter is indeed an array.

function redhen_contact_property_full_name_get(RedhenContact $contact, array $options, $property_name, $entity_type) {
$name = $contact->first_name . ' ' . $contact->middle_name . ' ' . $contact->last_name;
$context = array(
'contact' => clone $contact,
drupal_alter('redhen_contact_name', $name, $context);
return $name;



Status:Active» Fixed

Thanks Mickey, got it.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.