SimpleMachines/SMF2.1 — pull request #1494 by MissAllSunday (2014-04-01 18:00:34+00:00)
Title: Hooking goodies

- Re-writes call_integration_hook, there was some issues with using ":" as a wildcard for adding files so use the pipe | character instead.

- It is now possible to load a file and also create a new instance for a hook following this pattern:

'integrate_menu_buttons' => '$sourcedir/File.php|Class::method#',

The file needs to specify a directory wildcard, either $boarddir, $sourcedir or, if available, $themedir

If no dir wilcard was specified, SMF will attempt to try to load the file from $sourcedir

- Adds support for static and normal methods on Admin, Profile and the smf_main() function, uses the same procedure used in Subs::call_integration_hook()