Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 10:14 PM
Size
1 KB
Referenced Files
None
Subscribers
None

mw_patch

# Editing
#
global $wgLivePreview;
- $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'textboxsize' ) . '</legend>
- <div>' .
- wfInputLabel( wfMsg( 'rows' ), 'wpRows', 'wpRows', 3, $this->mRows ) .
- ' ' .
- wfInputLabel( wfMsg( 'columns' ), 'wpCols', 'wpCols', 3, $this->mCols ) .
- "</div>" .
- $this->getToggles( array(
+
+ $default_array = array (
'editsection',
'editsectiononrightclick',
'editondblclick',
@@ -980,9 +954,32 @@
'externaldiff',
$wgLivePreview ? 'uselivepreview' : false,
'forceeditsummary',
- ) ) . '</fieldset>'
+ ) ;
+ wfRunHooks ('getEditingPreferencesTab', array (&$this, &$default_array) ) ;
+
+ $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'textboxsize' ) . '</legend>
+ <div>' .
+ wfInputLabel( wfMsg( 'rows' ), 'wpRows', 'wpRows', 3, $this->mRows ) .
+ ' ' .
+ wfInputLabel( wfMsg( 'columns' ), 'wpCols', 'wpCols', 3, $this->mCols ) .
+ "</div>" .
+ $this->getToggles ($default_array)
);

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4537
Default Alt Text
mw_patch (1 KB)

Event Timeline