Hi all,
I'm working on an extension that uses a Preview button, the same
as on edit pages. Unfortunately the shortcut key for the
button conflicts with the Printable version link in the navigation
bar, effectively preventing the keyboard shortcut from working at all.
The edit page does not have
$wgHooks['BaseTemplateToolbox'][] = 'eWhateverBaseTemplateToolbox';
function efWhateverBaseTemplateToolbox ( $tpl, $toolbox ) {
if( //check whether it's your extension's page ) {
unset($toolbox['print']);
}
return true;
}
___
$wgHooks['BaseTemplateToolbox'][] = 'eWhateverBaseTemplateToolbox';
function efWhateverBaseTemplateToolbox ( $tpl, $toolbox ) {
if( //check whether it's your extension's page ) {
unset($toolbox['print']);
}
return true;
}
Brilliant, works like a charm! I just had to