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

Add pre/post hooks on ContributionSoft entity #16264

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

MegaphoneJon
Copy link
Contributor

Overview

Pre/post hooks for ContributionSoft entity.

Before

No pre/post hooks.

After

Pre/post hooks.

Technical Details

A potential use case is detailed on https://lab.civicrm.org/dev/financial/issues/113.

@civibot
Copy link

civibot bot commented Jan 9, 2020

(Standard links)

@MegaphoneJon
Copy link
Contributor Author

Doc PR: civicrm/civicrm-dev-docs#743

@eileenmcnaughton
Copy link
Contributor

eileenmcnaughton commented Jan 10, 2020

Looks like an enotice - I think these are the 2 lines we have been preferring / standardising on

    $hook = empty($params['id']) ? 'create' : 'edit';
    CRM_Utils_Hook::pre($hook, 'OpenID', CRM_Utils_Array::value('id', $params), $params);

@seamuslee001 seamuslee001 merged commit 2931fe9 into civicrm:master Jan 10, 2020
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