2
votes
Controlling Available Search Kit Actions at a Granular Level
The hook will work to do what you want, but you should inspect the $tasks variable to see what it looks like. The array is keyed by entity type so your code needs to be updated accordingly.
But as ...
1
vote
Accepted
custom fields in hook_civicrm_pre' $params have an extra "_-1" suffix
Converted comment to answer:
I think it's always been like this? And for editing an existing one it's not -1 it's the autoincrement id in the customvalue table.
1
vote
Accepted
How to create a hook in an extension?
I find the 'normal' way pretty ugly.
listing the args by name in an array, then
supplying the args, then
needing to pass by ref a NULL/dummy variable for each of the remaining 6 or was it 7? ...
1
vote
How to change mailing form and set the default value for url_tracking to false?
This feature is now part of core: Administer -> CiviMail -> CiviMail Component Settings:
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
hooks × 139extension × 24
api × 16
custom-fields × 14
developer × 14
drupal × 8
forms × 8
wordpress × 7
civievent × 7
php × 7
webform-civicrm × 6
email × 6
civimember × 5
relationships × 5
civicontribute × 4
civicase × 4
activities × 4
permissions × 4
tokens × 4
ajax × 4
civimail × 3
profile × 3
database × 3
groups × 3
contribution-page × 3