Add is_active to link spec
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 17 May 2023 23:41:25 +0000 (11:41 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 17 May 2023 23:42:49 +0000 (11:42 +1200)
commit1d8f04c7c93a06bb0262ba82088dedca83beaf28
treebcc5b194eafa91842182c1cdea0bd043ac605bba
parent0c3e95966b898ad239777106457c15fb0b78e467
Add is_active to link spec

In the process of adding weights to the links it
occurred to me that it might be cleaner in some cases for
hooks to fiddle with 'is_active' rather than setting &
unsetting.

An example would be that instead of excluding
a link that our core code thinks should not be available
we could include it with is_active = FALSE &
a hook could enable it.

I figured if it I add it now then while adding weights I could
bank it in too
CRM/Core/Action.php