Hot answers tagged

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 ...
user avatar
  • 16.1k
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.
user avatar
  • 17.5k
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? ...
user avatar
  • 3,678
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:
user avatar
  • 1,154

Only top scored, non community-wiki answers of a minimum length are eligible