2

I would like to remove the link from a report email header. Is it easy to achieve? thanks

enter image description here

2

It seems to be hardcoded (https://github.com/civicrm/civicrm-core/blob/master/CRM/Report/Form.php#L3405), but you could use hook_civicrm_alterMailParams and do something like (untested - you might have to adjust the regex):

if ($params['groupName'] == 'Report Email Sender') { $params['html'] = preg_replace('/^Report URL.*$/', '', $params['html']); }

Another option which is maybe simpler is just completely replace the html in the hook, if you don't really need the other text either:

if ($params['groupName'] == 'Report Email Sender') { $params['html'] = 'Insert your own html'; }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.