Add hooks importTheme and exportTheme #7341
Add hooks importTheme and exportTheme #7341
Conversation
For the sake of completeness, this has been discussed so far:
|
As discussed on Mumble, it is important that the database import has been completed by the time the hook is executed. |
The argument order is currently not consistent, is it?
@ausi What about making |
You are right, it was not consistent. I added |
While looking at these theme hooks, I realized that the theme import and export process consists of three steps:
If an extension uses the import theme hook, it should be possible to display a warning in the compare step if it cannot handle the imported file correctly. To make that possible I added a third hook called |
Since I usually name the hooks after the methods they are triggered in, I would prefer And do we really need to pass |
I think the |
Ok, the theme ID seems like a good compromise. Can you adjust the PR one last time please? |
@leofeyer done |
As discussed in #7296 but I have changed the hook parameters.