hook 'h5p_save_content' after inserting or updating content#179
Open
RamonSVieira wants to merge 1 commit intoh5p:masterfrom
Open
hook 'h5p_save_content' after inserting or updating content#179RamonSVieira wants to merge 1 commit intoh5p:masterfrom
RamonSVieira wants to merge 1 commit intoh5p:masterfrom
Conversation
|
Very good! Genius! |
Contributor
|
Yup, in fact simple - can't you just merge this by glancing at the code without any testing at all? - yet useful. Since this was not available years ago (and it still is not) and would not have been in time, I had to build myself a very clumsy workaround to detect saving and determine the correct ID on a platform that is used by multiple concurrent authors. So I can really say: This helps developers a lot! Please review and merge soon. |
|
It's a very useful feature. To make it even better, it would be great if the event_type were also included in the attributes. That way, we can easily know whether the content was created or updated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 'h5p_save_content' hook allows other system components to respond to the event of saving H5P content. This can be useful for performing additional tasks, such as notifying users, synchronizing data with other systems, or any other operation necessary after saving the content. It is also beneficial for developers as they can extend and customize the system's behavior without directly modifying the core code. This allows for different functionalities to be added or modified in a more modular and organized manner.