Last modified: 2010-05-15 16:03:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16806, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14806 - A hook to enable putting options to the preferences tab
A hook to enable putting options to the preferences tab
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.13.x
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Andrew Garrett
: patch, patch-need-review
Depends on: 18410
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-13 19:13 UTC by Bartek
Modified: 2010-05-15 16:03 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
This is a proposed patch for this bug (1.56 KB, patch)
2008-07-14 09:06 UTC, Bartek
Details

Description Bartek 2008-07-13 19:13:47 UTC
New options go to the Misc section of the preferences. Some mechanism is needed to enable putting options into the editing tab without having to modify the hardwritten code.
Comment 1 Daniel Kinzler 2008-07-13 19:19:46 UTC
FYI: The RenderPreferencesForm hook can also be used to add new preference sections (tabs), see the Gadgets extension for an example.
Comment 2 Bartek 2008-07-14 09:06:27 UTC
Created attachment 5068 [details]
This is a proposed patch for this bug

This is a proposed solution for this bug, in a form of a patch.
Comment 3 Siebrand Mazeland 2008-08-11 14:51:01 UTC
Keywords: patch, need-review
Comment 4 Christian Neubauer 2008-08-13 18:59:06 UTC
It would be nice if this were more generic so you could add preferences to any tab.  One option would be to use string member variables that get appended to each tab section when that section is added to wgOut, and then call a hook at the beginning of the process to allow hooks to add content to those members.  This is already done in SpecialUpload.php with $uploadFormTextTop and in EditPage.php with $editFormPageTop, etc.
Comment 5 Aaron Schulz 2009-01-03 12:42:24 UTC
(In reply to comment #4)
> It would be nice if this were more generic so you could add preferences to any
> tab.  One option would be to use string member variables that get appended to
> each tab section when that section is added to wgOut, and then call a hook at
> the beginning of the process to allow hooks to add content to those members. 
> This is already done in SpecialUpload.php with $uploadFormTextTop and in
> EditPage.php with $editFormPageTop, etc.
> 

Right. More general would help a lot here.

Also, this patch doesn't apply, missing the INDEX param.
Comment 6 Aaron Schulz 2009-03-24 18:41:00 UTC
Assigning to Andrew, since he seems to be overhauls prefs
Comment 7 Andrew Garrett 2009-04-08 02:16:38 UTC
Will be doable when <tt>preferences-work</tt> branch is merged with trunk.
Comment 8 Andrew Garrett 2009-04-15 04:30:13 UTC
Fixed in preferences-work.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links