Page MenuHomePhabricator

Allow Developers to add links to edit sections via hooks
Closed, ResolvedPublic

Description

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:

http://www.mediawiki.org/wiki/Extension:DiscussionThreading

and allow workarounds for:

http://bugzilla.wikimedia.org/show_bug.cgi?id=6467
http://bugzilla.wikimedia.org/show_bug.cgi?id=522
http://bugzilla.wikimedia.org/show_bug.cgi?id=3043

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) );

Version: 1.11.x
Severity: enhancement
URL: http://wiki.montcopa.org/MediaWiki

Attached:

Details

Reference
bz10139

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:49 PM
bzimport set Reference to bz10139.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Applied in r22737, with minor modifications.

Parameter $hint needed to tag [edit] help

Attached: