I am learning how to use hooks in mediawiki. I am also new to PHP. General hook handler can be added by putting next line in to LocalSettings.php:
$wgHooks['event'][] = 'function';
Suppose I wrote myfunction
in my.php
file. How can I point to this function from LocalSettings.php
Edit. I have written some function in my.php file. How to refer to this function?
I should tell mediawiki where find this function.I don't know how to do it.
Should I write '$wgHooks['event'][] = 'my.php:function'
. Or I should include
my.php file to LocalSetting and then just write '$wgHooks['event'][] = 'function'