hook_civicrm_links - are the docs wrong or the code?
The docs for hook_civicrm_links
provides this signature:
hook_civicrm_links(string $op, string $objectName, int $objectID, array &$links, int &$mask, array &$values)
However, the type hinting isn't always correct. I've found:
- PCP pages pass
NULL
for$mask
. - The extensions page passes a string for
$objectID
.
Should we change the docs or the code?