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

Adding K2BeforeSave plugin event #181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

styleware
Copy link
Contributor

It's a plugin event used in previous version of K2.
It's very useful in some situations for thirdparty plugins.

It's a plugin event used in previous version of K2.
It's very useful in some situations for thirdparty plugins.
@kavadas
Copy link
Contributor

kavadas commented Jan 7, 2015

You can use the core events "onContentBeforeSave" and "onContentAfterSave". This events now supply the context argument so you can check if it is a save action for a K2 item, a K2 category, a Joomla! article etc. If there is something else that we are missing regarding this, let us know.

@styleware
Copy link
Contributor Author

Yes, but that will require the creation of separate content plugin along with our K2 plugin just for the use of that event alone. It will be nice if the old method works also, so that the code can be in one place when possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants