Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4974
mw_patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:14 PM
2014-11-21 22:14:10 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
mw_patch
View Options
# 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
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4537
Default Alt Text
mw_patch (1 KB)
Attached To
Mode
T16806: A hook to enable putting options to the preferences tab
Attached
Detach File
Event Timeline
Log In to Comment