pcp.user.actions - Decompose deviant list of links
authorTim Otten <totten@civicrm.org>
Tue, 19 Sep 2023 05:06:54 +0000 (22:06 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 3 Oct 2023 04:44:59 +0000 (21:44 -0700)
commit6a335e0661289e37a78cad528c800457d4f69cf0
tree859244570ff6cc7a816fd8fccba7e4a322a398a4
parentc7ad5d8f4274b68e32c1c4b6fb6495e0fc7ec8f9
pcp.user.actions - Decompose deviant list of links

The problem is that:

* `hook_links('pcp.user.actions')` fires with a malformed set links
* The malformed set of links has been specifically encoded into unit tests

So fixing the bad links would likely break some consumer. (I don't see the
consumer in my copy of `universe`, but if someone wrote the test, then they
must've really meant it...)

This patch adds alternative variants (`hook_links('pcp.user.actions.add')` and
`hook_links('pcp.user.actions.all')`) which should replace it.
CRM/PCP/BAO/PCP.php