Andreas Rindler schreef:
Hi, I have two extensions (SelectCategoryTagCloud and FCKeditor) that both use the following hook to access the content of the edit page input box: $wgHooks['EditPage::showEditForm:initial']
How can I control which extension gets to do its work first?
By require_once()ing one extension before the other. The extension require_once()'d first *generally* does its work first.
And when the user saves the page, I would like to reverse the order.
I'm afraid that's not possible unless you write a mediator extension that unregisters SCTC's and FCK's hook functions, registers itself with EditPage::showEditForm::initial instead and then decides in which order to run the hooks based on some EditPage property.
Roan Kattouw (Catrope)