Author: skizzerz
Description:
Can you add a hook to the function getEditButtons in /includes/EditPage.php (immediately before the return $buttons; line). Not sure what to call it, perhaps "modifyEditButtons" or something? It would allow for the modification of the array $buttons, which contains the edit buttons Save, Preview, Live, and Diff.
Anyway, the implementation of such a hook would allow for numerous extensions to add their own features to the row of buttons or even change appearances/functionality of existing ones (for example, forcing anonymous users to preview before saving).
I'm too lazy to write up a patch for the addition of a single line, so here's the change :P
/includes/EditPage.php line 1964-1965
currently
return $buttons;
change to
wfRunHooks('modifyEditButtons', array(&$buttons));
return $buttons;
Version: 1.12.x
Severity: enhancement