Clean up description for alterDisplayName hook
authorMatthew Wire <mjw@mjwconsult.co.uk>
Thu, 13 Jan 2022 21:30:50 +0000 (21:30 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Thu, 13 Jan 2022 21:31:04 +0000 (21:31 +0000)
CRM/Utils/Hook.php

index 641e28c4e2ebc9ea6520a4edc538b7920d3563f8..a67f2a9efc751e4bc7550eb306192c09ca8a316f 100644 (file)
@@ -2361,12 +2361,12 @@ abstract class CRM_Utils_Hook {
    * Issue CRM-14276
    * Add a hook for altering the display name
    *
-   * hook_civicrm_contact_get_displayname(&$display_name, $objContact)
+   * hook_civicrm_contact_get_displayname(&$display_name, $contactId, $dao)
    *
    * @param string $displayName
    * @param int $contactId
-   * @param object $dao
-   *   The contact object.
+   * @param CRM_Core_DAO $dao
+   *   A DAO object containing contact fields + primary email field as "email".
    *
    * @return mixed
    */