Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#2303 Extract function to load the messageContent for a template #19409

Merged
merged 2 commits into from
Jan 18, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jan 18, 2021

Overview

This is a fairly straightforward extraction, seeking to break down the very-busy sendtemplate function
into the sub-functions within it. Essentially we load the template content, we swap out the tokens
and we send it.

Note that I have added a parameter to the output sent to alterMailContent
of 'workflow_name' which is more accurate - I updated the docs

Before

Function part of metafunction

After

Extracted

Technical Details

Comments

It seems to have committed rather than PR-d my docs change
https://lab.civicrm.org/documentation/docs/dev/-/blob/master/docs/hooks/hook_civicrm_alterMailContent.md

@civibot
Copy link

civibot bot commented Jan 18, 2021

(Standard links)

@seamuslee001
Copy link
Contributor

Looks like at least some of the test fails are related @eileenmcnaughton

@eileenmcnaughton
Copy link
Contributor Author

Yep I didn't finish the isTest bit - trying again....

@mattwire
Copy link
Contributor

@eileenmcnaughton Can you add a small description to the code + docs about what workflow_name actually means?

This is a fairly straightforward extraction, seeking to break down the very-busy sendtemplate function
into the sub-functions within it. Essentially we load the template content, we swap out the tokens
and we send it.

Note that I have added a parameter to the output sent to alterMailContent
of 'workflow_name' which is more accurate - I will update the docs
@eileenmcnaughton
Copy link
Contributor Author

@eileenmcnaughton
Copy link
Contributor Author

Unrelated fail

@eileenmcnaughton eileenmcnaughton merged commit a663bfd into civicrm:master Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants