In the Admin.php file the code for integrate_admin_areas is missing. Is this an oversight?
// Let them modify admin areas easily.
call_integration_hook('integrate_admin_areas', array(&$admin_areas));
Is there some other way to achieve what this hook was for? or do I need to put it back with a MOD?
There's a generic hook inside the menu code instead that replaces the equivalent hooks for admin and profile.
Would that be createMenu() in Subs-Menu.php?
Odd... I been using integrate_admin_areas in my mods for SMF 2.1 seems to still work for some reason...
It may have been there in 2.1 but the code is definitely missing in 2.1 RC1...
Yeah I meant RC1...
It's here:
https://github.com/SimpleMachines/SMF2.1/blob/1280283d1e389fd1532f8cfa37d6e532d8777ed3/Sources/Subs-Menu.php#L67-L69
When building the admin menu, that will call the integrate_admin_menu hook. When building the moderation menu, it will call the integrate_moderate_menu hook, etc., etc.
That explains it! Thanks
I remember being confused about that myself once when I was getting started with 2.1's code, so I've just added some comments (https://github.com/SimpleMachines/SMF2.1/commit/596c66d59693042bcf39446bb1758de26ab1962f) to make it easier for others to find this in the future.