SimpleMachines/SMF2.1 — pull request #49 by marcusforsberg (2012-06-26 20:52:26+00:00)
Title: Some hook stuff

I have no friggin idea what I'm doing, I must say.... :P This pull request thingie is probably a lot messier than it should be but if I try a new one in the future I now know what to do and what not to do... Heh.

Commit e416592 wasn't actually supposed to be in this branch but a separate one but I guess it doesn't really hurt.

Anyway.

IMO, there's no point having the button_strip arrays (such as
$mod_buttons or $normal_buttons) in the templates. It makes more sense
to have them in their corresponding source files, as with the main menu
in 2.0. Themes rarely need to modify them and if they do, they can still
do so (changing the image instance (which doesn't actually do much, does
it?) and so on) by just using the "new" array.

Also made sure there are hooks for all of them. One may argue that some
of them probably will never be used, but I feel that the hook system
won't have reached its full potential until as much as possible is
editable via hooks, so why not play it safe?