Last modified: 2007-06-05 05:37:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10139 - Allow Developers to add links to edit sections via hooks
Allow Developers to add links to edit sections via hooks
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch-reviewed
Depends on:
  Show dependency treegraph
Reported: 2007-06-04 19:11 UTC by Jack D. Pond
Modified: 2007-06-05 05:37 UTC (History)
2 users (show)

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

Diff on 1.10.RC1 trunk (1.54 KB, patch)
2007-06-04 19:11 UTC, Jack D. Pond
Parameter $hint needed to tag [edit] help (724 bytes, patch)
2007-06-05 05:37 UTC, Jack D. Pond

Description Jack D. Pond 2007-06-04 19:11:38 UTC
Created attachment 3712 [details]
Diff on 1.10.RC1 trunk

Allow developers to customize the section headers for addition links (icons, text, etc).

This would make the following possible without patches:

and allow workarounds for:

Would only require two new hooks into linker.php (see full details in diff file attached):

in public function editSectionLinkForOther add:
    wfRunHooks( 'editSectionLinkForOther', array( &$this, $title, $section , $url, &$result)  );

in public function editSectionLink add:
    wfRunHooks( 'editSectionLink', array( &$this, $nt, $section, $hint='', $url , &$result) );
Comment 1 Rob Church 2007-06-05 01:51:13 UTC
Applied in r22737, with minor modifications.
Comment 2 Jack D. Pond 2007-06-05 05:37:19 UTC
Created attachment 3720 [details]
Parameter $hint needed to tag [edit] help

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