Erm... there's a little issue with that idea...
Do remember that extensions are defined inside of LocalSettings.php, and
until loaded they don't have anything set inside of $wgHooks... So a
beforeConfiguration hook would absolutely never be run by anything
because nothing would be able to hook into it early enough. As for the
afterConfiguration, generally we use $wgExtensionFunctions (Think that
was the name) for this...
~Daniel Friesen(Dantman) of:
-The Gaiapedia (
On 3/17/08, Simetrical
<Simetrical+wikilist(a)gmail.com> wrote:
There is no hook specifically for this purpose.
There doesn't need to
be: the variables are globals. You can set them from any hook you
want. Just make sure the hook executes early enough that it's before
the global is used elsewhere.
I wonder if beforeConfiguration/afterConfiguration hooks would be
desirable, before and after LocalSettings.php is included
respectively.